[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix some memory leaks and unlikely segfaults
Update of /home/or/cvsroot/tor/src/or
In directory moria.mit.edu:/tmp/cvs-serv31936/src/or
Modified Files:
circuitbuild.c
Log Message:
Fix some memory leaks and unlikely segfaults
Index: circuitbuild.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- circuitbuild.c 5 Dec 2004 12:35:00 -0000 1.70
+++ circuitbuild.c 7 Dec 2004 07:48:16 -0000 1.71
@@ -118,6 +118,7 @@
s = smartlist_join_strings(elements, verbose?" ":",", 0, NULL);
SMARTLIST_FOREACH(elements, char*, cp, tor_free(cp));
+ smartlist_free(elements);
return s;
}