summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-18 00:17:46 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-18 00:17:46 +0000
commiteb1752e458961946fa49f01edd0e8cac82a5fc75 (patch)
treead3770fa06630c75d94b73cf059f51c66f645292 /src/or
parent97b20ca31dae7ab3fdca110306b8376dd80513a4 (diff)
downloadtor-eb1752e458961946fa49f01edd0e8cac82a5fc75.tar.gz
tor-eb1752e458961946fa49f01edd0e8cac82a5fc75.zip
Backport: Fix memory leak in rend_cache_store_v2_desc_as_client().
svn:r17666
Diffstat (limited to 'src/or')
-rw-r--r--src/or/rendcommon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c
index 9c5df44828..559d67e94d 100644
--- a/src/or/rendcommon.c
+++ b/src/or/rendcommon.c
@@ -1139,6 +1139,7 @@ rend_cache_store_v2_desc_as_client(const char *desc,
if (strmap_get_lc(rend_cache, key)) {
log_info(LD_REND, "We already have a v0 descriptor for service ID %s.",
safe_str(service_id));
+ rend_service_descriptor_free(parsed);
return -1;
}
/* Do we already have a newer descriptor? */