mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
Fix a small memory leak when parsing unix: ports twice
Fixes bug 23053; CID 1415725.
This commit is contained in:
parent
24ddf5862e
commit
9a0f38a349
5
changes/bug23053
Normal file
5
changes/bug23053
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Minor bugfixes (memory leak):
|
||||||
|
- Fix a small memory leak when validating a configuration that
|
||||||
|
uses two or more AF_UNIX sockets for the same port type.
|
||||||
|
Fixes bug 23053; bugfix on 0.2.6.3-alpha. This is CID
|
||||||
|
1415725.
|
@ -6877,6 +6877,7 @@ parse_port_config(smartlist_t *out,
|
|||||||
SMARTLIST_FOREACH(elts, char *, cp, tor_free(cp));
|
SMARTLIST_FOREACH(elts, char *, cp, tor_free(cp));
|
||||||
smartlist_clear(elts);
|
smartlist_clear(elts);
|
||||||
tor_free(addrport);
|
tor_free(addrport);
|
||||||
|
tor_free(unix_socket_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (warn_nonlocal && out) {
|
if (warn_nonlocal && out) {
|
||||||
|
Loading…
Reference in New Issue
Block a user