mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-24 14:51:11 +01:00
Fix a rare memory leak in rend_cache_store
When we rejected a descriptor for not being the one we wanted, we were letting the parsed descriptor go out of scope. Found by Coverity; CID # 30. Bugfix on 0.2.1.26. (No changes file yet, since this is not in any 0.2.1.x release.)
This commit is contained in:
parent
010b8dd4f6
commit
46297bc7bd
1 changed files with 1 additions and 0 deletions
|
@ -1077,6 +1077,7 @@ rend_cache_store(const char *desc, size_t desc_len, int published,
|
|||
log_warn(LD_REND, "Received service descriptor for service ID %s; "
|
||||
"expected descriptor for service ID %s.",
|
||||
query, safe_str(service_id));
|
||||
rend_service_descriptor_free(parsed);
|
||||
return -2;
|
||||
}
|
||||
now = time(NULL);
|
||||
|
|
Loading…
Add table
Reference in a new issue