aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-12-16 08:20:10 +0000
committerRoger Dingledine <arma@torproject.org>2007-12-16 08:20:10 +0000
commit98a56a386df73290e2f97d252d219d95bffa5099 (patch)
tree91b5c896f2947479710a9f9993cca21cab2decb4 /src/or/routerparse.c
parent71c84abdff1f8366ba5f3fad6496dd1735273222 (diff)
downloadtor-98a56a386df73290e2f97d252d219d95bffa5099.tar
tor-98a56a386df73290e2f97d252d219d95bffa5099.tar.gz
our unit tests leak memory like a sieve.
fix two actual memory leaks found while cleaning up a bit. svn:r12829
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 18131b8e0..c386a004a 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -2407,6 +2407,7 @@ networkstatus_parse_detached_signatures(const char *s, const char *eos)
sigs = NULL;
done:
SMARTLIST_FOREACH(tokens, directory_token_t *, t, token_free(t));
+ smartlist_free(tokens);
return sigs;
}