aboutsummaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-11 19:41:03 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-11 19:41:03 +0000
commitd9aa57253d7baebda2409c4f10b2989bacab3572 (patch)
treebe34a26d80a127c175662f23dc7d44585390bf0b /src/or/test.c
parentbb02f919f109979f0595523fbf1b3de4ed8f9c2c (diff)
downloadtor-d9aa57253d7baebda2409c4f10b2989bacab3572.tar.gz
tor-d9aa57253d7baebda2409c4f10b2989bacab3572.zip
Fix error in last unit test mem-leak-fixing.
svn:r17596
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index a198832389..3a291a11ca 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -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);