[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -fix leaks
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -fix leaks |
Date: |
Fri, 05 Jul 2024 09:12:17 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 6af5cd79a -fix leaks
6af5cd79a is described below
commit 6af5cd79ac67b3c232a4ca78b3b668ca21ddeb04
Author: Christian Grothoff <grothoff@gnunet.org>
AuthorDate: Fri Jul 5 09:12:13 2024 +0200
-fix leaks
---
src/cli/util/gnunet-config.c | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/src/cli/util/gnunet-config.c b/src/cli/util/gnunet-config.c
index 979f0b3f4..3f758a039 100644
--- a/src/cli/util/gnunet-config.c
+++ b/src/cli/util/gnunet-config.c
@@ -154,6 +154,9 @@ main (int argc,
if (GNUNET_SYSERR == iret)
{
GNUNET_free_nz ((void *) argv);
+ GNUNET_free (cfgfile);
+ GNUNET_free (loglev);
+ GNUNET_free (logfile);
return EXIT_INVALIDARGUMENT;
}
if (GNUNET_OK !=
@@ -162,11 +165,17 @@ main (int argc,
logfile))
{
GNUNET_free_nz ((void *) argv);
+ GNUNET_free (cfgfile);
+ GNUNET_free (loglev);
+ GNUNET_free (logfile);
return EXIT_FAILURE;
}
+ GNUNET_free (loglev);
+ GNUNET_free (logfile);
if (1 == is_experimental)
{
GNUNET_free_nz ((void *) argv);
+ GNUNET_free (cfgfile);
#ifdef GNUNET_EXPERIMENTAL
return 0;
#else
@@ -192,6 +201,7 @@ main (int argc,
}
GNUNET_free (prefixdir);
GNUNET_free (libdir);
+ GNUNET_free (cfgfile);
GNUNET_free_nz ((void *) argv);
return 0;
}
@@ -205,6 +215,7 @@ main (int argc,
iret = (GNUNET_OK ==
GNUNET_PLUGIN_test (name)) ? 0 : 77;
GNUNET_free (name);
+ GNUNET_free (cfgfile);
GNUNET_free_nz ((void *) argv);
return iret;
}
@@ -225,6 +236,7 @@ main (int argc,
_ ("Failed to load default configuration, exiting ...\n"));
GNUNET_free_nz ((void *) argv);
GNUNET_CONFIGURATION_destroy (cfg);
+ GNUNET_free (cfgfile);
return EXIT_FAILURE;
}
if (GNUNET_OK !=
@@ -237,6 +249,7 @@ main (int argc,
_ ("Failed to parse configuration, exiting ...\n"));
GNUNET_free_nz ((void *) argv);
GNUNET_CONFIGURATION_destroy (cfg);
+ GNUNET_free (cfgfile);
return EXIT_FAILURE;
}
}
@@ -250,6 +263,7 @@ main (int argc,
cfgfile);
GNUNET_free_nz ((void *) argv);
GNUNET_CONFIGURATION_destroy (cfg);
+ GNUNET_free (cfgfile);
return EXIT_FAILURE;
}
if (GNUNET_SYSERR ==
@@ -264,6 +278,7 @@ main (int argc,
cfgfile);
GNUNET_free_nz ((void *) argv);
GNUNET_CONFIGURATION_destroy (cfg);
+ GNUNET_free (cfgfile);
return EXIT_FAILURE;
}
}
@@ -275,6 +290,7 @@ main (int argc,
GNUNET_CONFIGURATION_config_settings_free (&cs);
GNUNET_CONFIGURATION_destroy (cfg);
}
+ GNUNET_free (cfgfile);
return cs.global_ret;
}
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -fix leaks,
gnunet <=