tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 7ba1f3911691d211a0297a4ec486d40c3d70bd8c
parent 54d1a2d80537e9f9a90dcca18c9e616f73809f58
Author: Martin Kepplinger <martink@posteo.de>
Date:   Tue, 13 Nov 2018 10:09:29 +0100

libtorrunner: fix memory leak in child() error path

This avoids leaking memory in case libtorrunner's child() function fails.

Diffstat:
Msrc/tools/tor_runner.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/tools/tor_runner.c b/src/tools/tor_runner.c @@ -93,6 +93,7 @@ child(const tor_main_configuration_t *cfg) int rv = execv(BINDIR "/tor", args); if (rv < 0) { + free(args); exit(254); } else { abort(); /* Unreachable */