diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2023-06-01 20:21:04 +0200 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2023-06-01 20:21:04 +0200 |
commit | f52d578f6f89ee6874f618f4458808d6f346c7e6 (patch) | |
tree | af9e7d2f57f721940cf736eafdf33ad1bd213d99 | |
parent | 9f27a1b29d43795c925864e937c61314d144c0a9 (diff) |
DHT: Fix memory leak. Fixes #7651
-rw-r--r-- | src/dht/gnunet-dht-get.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/dht/gnunet-dht-get.c b/src/dht/gnunet-dht-get.c index 02f04de26..393184bb6 100644 --- a/src/dht/gnunet-dht-get.c +++ b/src/dht/gnunet-dht-get.c @@ -330,21 +330,22 @@ main (int argc, char *const *argv) GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) return 2; - return (GNUNET_OK == - GNUNET_PROGRAM_run ( - argc, - argv, - "gnunet-dht-get", - gettext_noop ( - "Issue a GET request to the GNUnet DHT, prints results."), - options, - &run, - NULL)) + ret = (GNUNET_OK == + GNUNET_PROGRAM_run ( + argc, + argv, + "gnunet-dht-get", + gettext_noop ( + "Issue a GET request to the GNUnet DHT, prints results."), + options, + &run, + NULL)) ? ret : 1; // This is ugly, but meh. The GNUNET_STRINGS_get_utf8_args allows us to do this. u8_argv = (char*) argv; GNUNET_free (u8_argv); + return ret; } |