]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix error in last unit test mem-leak-fixing.
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Dec 2008 19:41:03 +0000 (19:41 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Dec 2008 19:41:03 +0000 (19:41 +0000)
svn:r17596

src/or/test.c

index a198832389da551e691d50cfc61de4a58ae61e66..3a291a11cab3b1dd908a7df4f4980cbcc3814845 100644 (file)
@@ -1851,7 +1851,7 @@ test_util_smartlist_strings(void)
   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);