aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/configuration.c1
-rw-r--r--src/util/container_meta_data.c7
-rw-r--r--src/util/crypto_rsa.c1
-rw-r--r--src/util/os_installation.c5
4 files changed, 12 insertions, 2 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index bda643b83..3294d11f4 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -606,6 +606,7 @@ GNUNET_CONFIGURATION_write (struct GNUNET_CONFIGURATION_Handle *cfg,
606 if (NULL == h) 606 if (NULL == h)
607 { 607 {
608 GNUNET_free (fn); 608 GNUNET_free (fn);
609 GNUNET_free (cfg_buf);
609 return GNUNET_SYSERR; 610 return GNUNET_SYSERR;
610 } 611 }
611 if (((ssize_t) size) != 612 if (((ssize_t) size) !=
diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c
index b66a7b258..efaac1136 100644
--- a/src/util/container_meta_data.c
+++ b/src/util/container_meta_data.c
@@ -964,6 +964,9 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData
964 { 964 {
965 /* does not fit! */ 965 /* does not fit! */
966 GNUNET_free (ent); 966 GNUNET_free (ent);
967 if (NULL != cdata)
968 GNUNET_free (cdata);
969 cdata = NULL;
967 return GNUNET_SYSERR; 970 return GNUNET_SYSERR;
968 } 971 }
969 972
@@ -976,9 +979,9 @@ GNUNET_CONTAINER_meta_data_serialize (const struct GNUNET_CONTAINER_MetaData
976 if (NULL != pos->mime_type) 979 if (NULL != pos->mime_type)
977 left -= strlen (pos->mime_type) + 1; 980 left -= strlen (pos->mime_type) + 1;
978 981
979 GNUNET_free (cdata); 982 if (NULL != cdata)
983 GNUNET_free (cdata);
980 cdata = NULL; 984 cdata = NULL;
981
982 i++; 985 i++;
983 } 986 }
984 GNUNET_free (ent); 987 GNUNET_free (ent);
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index 63232cab6..5e4c4d1e6 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -863,6 +863,7 @@ rsa_sign_mpi (const struct GNUNET_CRYPTO_RsaPrivateKey *key,
863 __FILE__, 863 __FILE__,
864 __LINE__, 864 __LINE__,
865 gcry_strerror (rc)); 865 gcry_strerror (rc));
866 gcry_sexp_release (data);
866 GNUNET_break (0); 867 GNUNET_break (0);
867 return NULL; 868 return NULL;
868 } 869 }
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",