aboutsummaryrefslogtreecommitdiff
path: root/src/util/os_installation.c
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2021-03-26 14:28:27 +0100
committerMartin Schanzenbach <mschanzenbach@posteo.de>2021-03-26 14:28:27 +0100
commitfa8b5926395406f96654aa5a0b84848dc4e1a519 (patch)
tree784111c575f181b7eff616a7a5d8ff7a41ea4394 /src/util/os_installation.c
parent655fc47e417831125d6ebb5f68d4e86371cb931f (diff)
downloadgnunet-fa8b5926395406f96654aa5a0b84848dc4e1a519.tar.gz
gnunet-fa8b5926395406f96654aa5a0b84848dc4e1a519.zip
-fixing memleaks and nptr derefs
Diffstat (limited to 'src/util/os_installation.c')
-rw-r--r--src/util/os_installation.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/os_installation.c b/src/util/os_installation.c
index d1e5e0da5..02d4d439d 100644
--- a/src/util/os_installation.c
+++ b/src/util/os_installation.c
@@ -736,7 +736,12 @@ GNUNET_OS_get_suid_binary_path (const struct GNUNET_CONFIGURATION_Handle *cfg,
736 "SUID_BINARY_PATH", 736 "SUID_BINARY_PATH",
737 &path); 737 &path);
738 if ((NULL == path) || (0 == strlen (path))) 738 if ((NULL == path) || (0 == strlen (path)))
739 {
740 if (NULL != path)
741 GNUNET_free (path);
742 cache = NULL;
739 return GNUNET_OS_get_libexec_binary_path (progname); 743 return GNUNET_OS_get_libexec_binary_path (progname);
744 }
740 path_len = strlen (path); 745 path_len = strlen (path);
741 GNUNET_asprintf (&binary, 746 GNUNET_asprintf (&binary,
742 "%s%s%s", 747 "%s%s%s",