diff options
author | Robert Ransom <rransom.8774@gmail.com> | 2011-11-07 08:35:51 -0800 |
---|---|---|
committer | Robert Ransom <rransom.8774@gmail.com> | 2011-11-07 08:35:51 -0800 |
commit | 65a0d7e7ef03cc2390cad81264e451e59206842b (patch) | |
tree | f68795041ef3fd4bc7dbca843a64f7d9226cf7fa /src/or/rendclient.c | |
parent | 972564630e8f85499e611f1eeb7174d0c0230731 (diff) | |
download | tor-65a0d7e7ef03cc2390cad81264e451e59206842b.tar.gz tor-65a0d7e7ef03cc2390cad81264e451e59206842b.zip |
Don't leak an extend_info_t in rend_client_any_intro_points_usable
Diffstat (limited to 'src/or/rendclient.c')
-rw-r--r-- | src/or/rendclient.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c index f84475acbc..3dfca58f86 100644 --- a/src/or/rendclient.c +++ b/src/or/rendclient.c @@ -952,8 +952,14 @@ rend_client_get_random_intro_impl(const rend_cache_entry_t *entry, int rend_client_any_intro_points_usable(const rend_cache_entry_t *entry) { - return rend_client_get_random_intro_impl( - entry, get_options()->StrictNodes, 0) != NULL; + extend_info_t *extend_info = + rend_client_get_random_intro_impl(entry, get_options()->StrictNodes, 0); + int rv = extend_info != NULL; + + if (extend_info != NULL) + extend_info_free(extend_info); + + return rv; } /** Client-side authorizations for hidden services; map of onion address to |