gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] branch master updated: DHT: Fix memory leak. Fixes #7651


From: gnunet
Subject: [gnunet] branch master updated: DHT: Fix memory leak. Fixes #7651
Date: Thu, 01 Jun 2023 20:21:31 +0200

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new f52d578f6 DHT: Fix memory leak. Fixes #7651
f52d578f6 is described below

commit f52d578f6f89ee6874f618f4458808d6f346c7e6
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Thu Jun 1 20:21:04 2023 +0200

    DHT: Fix memory leak. Fixes #7651
---
 src/dht/gnunet-dht-get.c | 21 +++++++++++----------
 1 file 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;
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]