[or-cvs] r17596: {tor} Fix error in last unit test mem-leak-fixing. (tor/trunk/src/or)

nickm at seul.org nickm at seul.org
Thu Dec 11 19:41:03 UTC 2008


Author: nickm
Date: 2008-12-11 14:41:03 -0500 (Thu, 11 Dec 2008)
New Revision: 17596

Modified:
   tor/trunk/src/or/test.c
Log:
Fix error in last unit test mem-leak-fixing.

Modified: tor/trunk/src/or/test.c
===================================================================
--- tor/trunk/src/or/test.c	2008-12-11 19:40:58 UTC (rev 17595)
+++ tor/trunk/src/or/test.c	2008-12-11 19:41:03 UTC (rev 17596)
@@ -1851,7 +1851,7 @@
   cp_alloc = smartlist_join_strings(sl, ",", 0, NULL);
   test_streq(cp_alloc,"the,router,onion,nickm,by,arma,and");
   tor_free(cp_alloc);
-  cp = smartlist_pop_last(sl);
+  cp_alloc = smartlist_pop_last(sl);
   test_streq(cp_alloc, "and");
   tor_free(cp_alloc);
   test_eq(smartlist_len(sl), 6);



More information about the tor-commits mailing list