[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 03/03: DHT: Fix memory lead in gnunet-dht-put. Fixes #7651
From: |
gnunet |
Subject: |
[gnunet] 03/03: DHT: Fix memory lead in gnunet-dht-put. Fixes #7651 |
Date: |
Sun, 05 May 2024 14:04:18 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 95f0616e0ca40eb2eef5881b0eaccc110a27fddc
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun May 5 14:03:38 2024 +0200
DHT: Fix memory lead in gnunet-dht-put. Fixes #7651
---
src/cli/dht/gnunet-dht-put.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/src/cli/dht/gnunet-dht-put.c b/src/cli/dht/gnunet-dht-put.c
index 37e7911b5..8f8e098e4 100644
--- a/src/cli/dht/gnunet-dht-put.c
+++ b/src/cli/dht/gnunet-dht-put.c
@@ -233,21 +233,22 @@ main (int argc, char *const *argv)
&argc, &argv))
return 2;
expiration = GNUNET_TIME_UNIT_HOURS;
- return (GNUNET_OK ==
- GNUNET_PROGRAM_run (
- argc,
- argv,
- "gnunet-dht-put",
- gettext_noop (
- "Issue a PUT request to the GNUnet DHT insert DATA under KEY."),
- options,
- &run,
- NULL))
+ ret = (GNUNET_OK ==
+ GNUNET_PROGRAM_run (
+ argc,
+ argv,
+ "gnunet-dht-put",
+ gettext_noop (
+ "Issue a PUT request to the GNUnet DHT insert DATA under KEY."),
+ 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.