mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Fix potential memory leak in hs_helper_build_intro_point().
This patch fixes a potential memory leak in hs_helper_build_intro_point() where a `goto done` is called before the `intro_point` variable have been assigned to the value of the `ip` variable. See: Coverity CID 1437460 See: Coverity CID 1437456
This commit is contained in:
parent
340fcc7e2e
commit
8c8941eb29
@ -85,6 +85,9 @@ hs_helper_build_intro_point(const ed25519_keypair_t *signing_kp, time_t now,
|
||||
|
||||
intro_point = ip;
|
||||
done:
|
||||
if (intro_point == NULL)
|
||||
tor_free(ip);
|
||||
|
||||
return intro_point;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user