[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix a mild memory leak (10 bytes each time an OR connected ...
- To: or-cvs@freehaven.net
- Subject: [or-cvs] fix a mild memory leak (10 bytes each time an OR connected ...
- From: arma@seul.org (Roger Dingledine)
- Date: Mon, 25 Aug 2003 02:24:20 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 25 Aug 2003 02:24:39 -0400
- Reply-to: or-dev@freehaven.net
- Sender: owner-or-cvs@freehaven.net
Update of /home/or/cvsroot/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/src/or
Modified Files:
connection_or.c
Log Message:
fix a mild memory leak (10 bytes each time an OR connected to an OR)
Index: connection_or.c
===================================================================
RCS file: /home/or/cvsroot/src/or/connection_or.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- connection_or.c 14 Aug 2003 17:13:51 -0000 1.38
+++ connection_or.c 25 Aug 2003 06:24:17 -0000 1.39
@@ -535,6 +535,8 @@
/* copy all relevant info to conn */
conn->addr = router->addr, conn->port = router->or_port;
conn->pkey = crypto_pk_dup_key(router->pkey);
+ if(conn->address)
+ free(conn->address);
conn->address = strdup(router->address);
/* generate a nonce */