mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix memory leak found in CID #1405876.
This commit is contained in:
parent
a61020ebd4
commit
60e97953ef
@ -3627,6 +3627,7 @@ parse_or_diff_from_header(smartlist_t **digests_out, const char *headers)
|
||||
} SMARTLIST_FOREACH_END(hex);
|
||||
SMARTLIST_FOREACH(hex_digests, char *, cp, tor_free(cp));
|
||||
smartlist_free(hex_digests);
|
||||
tor_free(hdr);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user