diff options
author | David Goulet <dgoulet@torproject.org> | 2022-01-19 13:02:33 -0500 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2022-01-19 14:01:34 -0500 |
commit | 222fbba4ff89dc69aff6dec4b524ca21dc28bf82 (patch) | |
tree | 1ef37a9cb0769e211d8e932555e80c05f90f78a5 /src/feature/relay | |
parent | 8e407e33292ed5e9166303fd69210d603c74f618 (diff) | |
download | tor-222fbba4ff89dc69aff6dec4b524ca21dc28bf82.tar.gz tor-222fbba4ff89dc69aff6dec4b524ca21dc28bf82.zip |
relay: Fix memory leak on BUG() code path
Introduced in bf10206e9e23ac0ded2cc9727666696ea25d5636 which is not
released yet thus no changes file.
Found by Coverity with cid #1495786.
Fixes #40532
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/relay')
-rw-r--r-- | src/feature/relay/selftest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/feature/relay/selftest.c b/src/feature/relay/selftest.c index a791079bd8..d029c05053 100644 --- a/src/feature/relay/selftest.c +++ b/src/feature/relay/selftest.c @@ -256,6 +256,7 @@ router_do_orport_reachability_checks(const routerinfo_t *me, const tor_addr_port_t *ap = extend_info_get_orport(ei, family); if (BUG(!ap)) { /* Not much we can do here to recover apart from screaming loudly. */ + extend_info_free(ei); return; } log_info(LD_CIRC, "Testing %s of my %s ORPort: %s.", |