[or-cvs] fix a mild memory leak (10 bytes each time an OR connected ...
Roger Dingledine
arma at seul.org
Mon Aug 25 06:24:20 UTC 2003
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 */
More information about the tor-commits
mailing list