aboutsummaryrefslogtreecommitdiff
path: root/src/or/microdesc.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-03 10:59:39 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-03 10:59:39 -0400
commited8f020e205267e6270494634346ab68d830e1d8 (patch)
treea3adc95f2121f56bfeb064d08ab0830f28e45163 /src/or/microdesc.c
parentc4d0d30bf3e621d5f7a7b27a7480bcdabe6274c6 (diff)
downloadtor-ed8f020e205267e6270494634346ab68d830e1d8.tar.gz
tor-ed8f020e205267e6270494634346ab68d830e1d8.zip
Fix a couple of small memory leaks on failure cases.
[CID 1234702, 1234703]
Diffstat (limited to 'src/or/microdesc.c')
-rw-r--r--src/or/microdesc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/microdesc.c b/src/or/microdesc.c
index ed586f37c2..576fed0066 100644
--- a/src/or/microdesc.c
+++ b/src/or/microdesc.c
@@ -576,6 +576,7 @@ microdesc_cache_rebuild(microdesc_cache_t *cache, int force)
microdesc_wipe_body(md);
}
}
+ smartlist_free(wrote);
return -1;
}