diff options
author | ulfvonbelow <strilen@tilde.club> | 2023-01-29 05:55:44 -0600 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-02-06 14:11:47 +0900 |
commit | ded7050ae2b79c1a2d50a2928e96208cfc56f0a9 (patch) | |
tree | 28c48ebd0870d67dd667d2bf1462ea2175b38c03 | |
parent | 9719babb53912f2523205238962b91f35359e42b (diff) | |
download | gnunet-ded7050ae2b79c1a2d50a2928e96208cfc56f0a9.tar.gz gnunet-ded7050ae2b79c1a2d50a2928e96208cfc56f0a9.zip |
TESTBED: don't leak helper_argv when SSH can't be executed.
Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index be7b9b630..2919b8b75 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c | |||
@@ -1339,6 +1339,7 @@ GNUNET_TESTBED_is_host_habitable ( | |||
1339 | if (NULL == h->auxp) | 1339 | if (NULL == h->auxp) |
1340 | { | 1340 | { |
1341 | GNUNET_break (0); /* Cannot exec SSH? */ | 1341 | GNUNET_break (0); /* Cannot exec SSH? */ |
1342 | free_argv (h->helper_argv); | ||
1342 | GNUNET_free (h); | 1343 | GNUNET_free (h); |
1343 | return NULL; | 1344 | return NULL; |
1344 | } | 1345 | } |