gnunet-svn
[Top][All Lists]
Advanced

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

[taler-exchange] branch master updated: fix minor leak


From: gnunet
Subject: [taler-exchange] branch master updated: fix minor leak
Date: Fri, 26 Feb 2021 12:19:00 +0100

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

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 15ed6ffb fix minor leak
15ed6ffb is described below

commit 15ed6ffb07e2c1b87f08a1b168e76c743a2ae944
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Fri Feb 26 12:18:58 2021 +0100

    fix minor leak
---
 src/mhd/mhd_config.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/mhd/mhd_config.c b/src/mhd/mhd_config.c
index e2471e9b..a619bba1 100644
--- a/src/mhd/mhd_config.c
+++ b/src/mhd/mhd_config.c
@@ -124,6 +124,7 @@ TALER_MHD_parse_config (const struct 
GNUNET_CONFIGURATION_Handle *cfg,
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                   "unixpath `%s' is too long\n",
                   *unix_path);
+      GNUNET_free (*unix_path);
       return GNUNET_SYSERR;
     }
 
@@ -136,6 +137,7 @@ TALER_MHD_parse_config (const struct 
GNUNET_CONFIGURATION_Handle *cfg,
       GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
                                  section,
                                  "UNIXPATH_MODE");
+      GNUNET_free (*unix_path);
       return GNUNET_SYSERR;
     }
     errno = 0;
@@ -147,6 +149,7 @@ TALER_MHD_parse_config (const struct 
GNUNET_CONFIGURATION_Handle *cfg,
                                  "UNIXPATH_MODE",
                                  "must be octal number");
       GNUNET_free (modestring);
+      GNUNET_free (*unix_path);
       return GNUNET_SYSERR;
     }
     GNUNET_free (modestring);
@@ -332,8 +335,14 @@ TALER_MHD_bind (const struct GNUNET_CONFIGURATION_Handle 
*cfg,
                                 &unixpath_mode))
       return -1;
     if (NULL != serve_unixpath)
-      return TALER_MHD_open_unix_path (serve_unixpath,
-                                       unixpath_mode);
+    {
+      int ret;
+
+      ret = TALER_MHD_open_unix_path (serve_unixpath,
+                                      unixpath_mode);
+      GNUNET_free (serve_unixpath);
+      return ret;
+    }
   }
   if (GNUNET_OK !=
       GNUNET_CONFIGURATION_get_value_string (cfg,

-- 
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]