diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-11-14 07:54:57 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-11-14 07:54:57 -0500 |
commit | db3acb3aa398bda46435d94427967410da173222 (patch) | |
tree | 03dbb8c3e53dca5d4ca2cf6c50c000d8593d2f89 | |
parent | 26fd7c1d9cdb7a3a4c379be7d309bd1b4c6bbaa4 (diff) | |
download | tor-db3acb3aa398bda46435d94427967410da173222.tar.gz tor-db3acb3aa398bda46435d94427967410da173222.zip |
Work around check-spaces.
-rw-r--r-- | src/tools/tor_runner.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/tor_runner.c b/src/tools/tor_runner.c index 7c43b0d244..cad57a7665 100644 --- a/src/tools/tor_runner.c +++ b/src/tools/tor_runner.c @@ -80,6 +80,7 @@ tor_run_main(const tor_main_configuration_t *cfg) /* circumlocution to avoid getting warned about calling calloc instead of * tor_calloc. */ #define real_calloc calloc +#define real_free free static void child(const tor_main_configuration_t *cfg) @@ -93,10 +94,9 @@ child(const tor_main_configuration_t *cfg) int rv = execv(BINDIR "/tor", args); if (rv < 0) { - free(args); + real_free(args); exit(254); } else { abort(); /* Unreachable */ } } - |