[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 01/02: core: fix memory leak in gnunet-core cli.
From: |
gnunet |
Subject: |
[gnunet] 01/02: core: fix memory leak in gnunet-core cli. |
Date: |
Mon, 13 May 2024 10:36:34 +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 3f59f17f26ed41bc280240e6b771e7311e3bec9a
Author: ulfvonbelow <striness@tilde.club>
AuthorDate: Mon May 6 16:18:00 2024 -0500
core: fix memory leak in gnunet-core cli.
Signed-off-by: Martin Schanzenbach <schanzen@gnunet.org>
---
src/cli/core/gnunet-core.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/cli/core/gnunet-core.c b/src/cli/core/gnunet-core.c
index d351a2f7f..00b08eefc 100644
--- a/src/cli/core/gnunet-core.c
+++ b/src/cli/core/gnunet-core.c
@@ -204,14 +204,17 @@ run (void *cls,
if (NULL == mh)
{
fprintf (stderr, "%s", _ ("Failed to connect to CORE service!\n"));
+ GNUNET_free (keyfile);
return;
}
}
if (! show_pid && ! show_conns && ! monitor_connections)
{
fprintf (stderr, "%s", _ ("No argument given.\n"));
+ GNUNET_free (keyfile);
return;
}
+ GNUNET_free (keyfile);
GNUNET_SCHEDULER_add_shutdown (&shutdown_task, NULL);
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.