[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] fix a minor leak in my recent commit
Update of /home2/or/cvsroot/tor/src/or
In directory moria.mit.edu:/home2/arma/work/onion/cvs/tor/src/or
Modified Files:
circuitbuild.c
Log Message:
fix a minor leak in my recent commit
Index: circuitbuild.c
===================================================================
RCS file: /home2/or/cvsroot/tor/src/or/circuitbuild.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- circuitbuild.c 5 Dec 2004 07:10:08 -0000 1.69
+++ circuitbuild.c 5 Dec 2004 12:35:00 -0000 1.70
@@ -810,6 +810,7 @@
int enough;
smartlist_t *sl = circuit_get_unhandled_ports(now);
enough = (smartlist_len(sl) == 0);
+ SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));
smartlist_free(sl);
return enough;
}