exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 15ed6ffb07e2c1b87f08a1b168e76c743a2ae944
parent 4e1770898a1de84dcfb4231ca89b1983f12e6c6a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 26 Feb 2021 12:18:58 +0100

fix minor leak

Diffstat:
Msrc/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 @@ -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,