Fix memory leak found in CID #1405876.

This commit is contained in:
Alexander Færøy 2017-05-05 11:35:12 +02:00
parent a61020ebd4
commit 60e97953ef
No known key found for this signature in database
GPG Key ID: E15081D5D3C3DB53

View File

@ -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;
}