mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix a memory leak in build_unopened_fourhop
This is a unit-test-only leak, but let's fix it anyway so it doesn't hide real bugs. Bug not in any released version of Tor.
This commit is contained in:
parent
37f26aa470
commit
2484d1eb35
@ -82,6 +82,8 @@ build_unopened_fourhop(struct timeval circ_start_time)
|
||||
onion_append_hop(&or_circ->cpath, fakehop);
|
||||
onion_append_hop(&or_circ->cpath, fakehop);
|
||||
|
||||
tor_free(fakehop);
|
||||
|
||||
return or_circ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user