diff options
author | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-26 14:28:27 +0100 |
---|---|---|
committer | Martin Schanzenbach <mschanzenbach@posteo.de> | 2021-03-26 14:28:27 +0100 |
commit | fa8b5926395406f96654aa5a0b84848dc4e1a519 (patch) | |
tree | 784111c575f181b7eff616a7a5d8ff7a41ea4394 /src/util/os_installation.c | |
parent | 655fc47e417831125d6ebb5f68d4e86371cb931f (diff) | |
download | gnunet-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.c | 5 |
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", |