mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Fix a memory-leak warning in test_circuitbuid.c
Coverity wants us to free everything that we are potentially
allocating, even stuff where allocating it would be a bug. Adding
a smartlist_free() here will fix the warning.
Fixes bug 31452; bugfix on 16a0b7ed67, which is not in
any released Tor. This is CID 1447292.
This commit is contained in:
@@ -167,6 +167,7 @@ test_upgrade_from_guard_wait(void *arg)
|
||||
tt_assert(!list);
|
||||
|
||||
done:
|
||||
smartlist_free(list);
|
||||
circuit_free(circ);
|
||||
entry_guard_free_(guard);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user