diff options
Diffstat (limited to 'src/or/hs_cache.c')
-rw-r--r-- | src/or/hs_cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c index 9b68045e89..6d33201469 100644 --- a/src/or/hs_cache.c +++ b/src/or/hs_cache.c @@ -81,7 +81,7 @@ cache_dir_desc_new(const char *desc) dir_desc->created_ts = time(NULL); return dir_desc; -err: + err: cache_dir_desc_free(dir_desc); return NULL; } @@ -173,7 +173,7 @@ cache_lookup_v3_as_dir(const char *query, char **desc_out) return found; -err: + err: return -1; } @@ -365,3 +365,4 @@ hs_cache_init(void) tor_assert(!hs_cache_v3_dir); hs_cache_v3_dir = digest256map_new(); } + |