diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-10-21 10:00:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-10-21 10:00:05 -0400 |
commit | 34b4da709d04a64e52f023f7fa54fdbab270546f (patch) | |
tree | 45936cef9a06a1ffd933f941c6492d69de578b28 /src/or/rendcache.c | |
parent | b7941cbfbb5a121425d9d0c5e1f903efd563a173 (diff) | |
download | tor-34b4da709d04a64e52f023f7fa54fdbab270546f.tar.gz tor-34b4da709d04a64e52f023f7fa54fdbab270546f.zip |
Fix a bunch more memory leaks in the tests.
Diffstat (limited to 'src/or/rendcache.c')
-rw-r--r-- | src/or/rendcache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/rendcache.c b/src/or/rendcache.c index fddedf165a..a75028e7f7 100644 --- a/src/or/rendcache.c +++ b/src/or/rendcache.c @@ -416,9 +416,10 @@ validate_intro_point_failure(const rend_service_descriptor_t *desc, /* This intro point is in our cache, discard it from the descriptor * because chances are that it's unusable. */ SMARTLIST_DEL_CURRENT(desc->intro_nodes, intro); - rend_intro_point_free(intro); /* Keep it for our new entry. */ digestmap_set(new_entry->intro_failures, (char *) identity, ent_dup); + rend_intro_point_free(intro); + continue; } } SMARTLIST_FOREACH_END(intro); |