[or-cvs] fix minor memory leak in config
Nick Mathewson
nickm at seul.org
Tue Oct 25 18:06:31 UTC 2005
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv5294
Modified Files:
config.c
Log Message:
fix minor memory leak in config
Index: config.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/config.c,v
retrieving revision 1.442
retrieving revision 1.443
diff -u -d -r1.442 -r1.443
--- config.c 25 Oct 2005 18:01:01 -0000 1.442
+++ config.c 25 Oct 2005 18:06:29 -0000 1.443
@@ -2880,7 +2880,7 @@
{
smartlist_t *items = NULL;
int r, idx;
- char *addrport, *address=NULL, *nickname=NULL, *fingerprint=NULL;
+ char *addrport=NULL, *address=NULL, *nickname=NULL, *fingerprint=NULL;
uint16_t port;
char digest[DIGEST_LEN];
int supports_v1 = 1; /*XXXX011 change default when clients support v2. */
@@ -2946,6 +2946,7 @@
done:
SMARTLIST_FOREACH(items, char*, s, tor_free(s));
smartlist_free(items);
+ tor_free(addrport);
tor_free(address);
tor_free(nickname);
tor_free(fingerprint);
More information about the tor-commits
mailing list