aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcypherpunks <writecode@127.0.0.1>2011-04-27 11:10:56 -0700
committerNick Mathewson <nickm@torproject.org>2011-04-27 15:15:32 -0400
commit247cbab6c8a37c5e6225bfd60491b071a29331e4 (patch)
tree4da9f6245c1217cff18871e1367a3dee9cc4838e /src
parent0f48e8fa9ad68f56c7b1076872848bd0f1e524b2 (diff)
downloadtor-247cbab6c8a37c5e6225bfd60491b071a29331e4.tar
tor-247cbab6c8a37c5e6225bfd60491b071a29331e4.tar.gz
Fix double-free bug in microdesc parser
Diffstat (limited to 'src')
-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 ba29f056f..d0138e638 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -4357,6 +4357,7 @@ microdescs_parse_from_string(const char *s, const char *eos,
md = NULL;
next:
microdesc_free(md);
+ md = NULL;
memarea_clear(area);
smartlist_clear(tokens);