aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/namestore/namestore_api_common.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/namestore/namestore_api_common.c b/src/namestore/namestore_api_common.c
index bf853ccdf..8cf75330c 100644
--- a/src/namestore/namestore_api_common.c
+++ b/src/namestore/namestore_api_common.c
@@ -571,6 +571,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
571 (off != data_size) ) 571 (off != data_size) )
572 { 572 {
573 GNUNET_break_op (0); 573 GNUNET_break_op (0);
574 GNUNET_free_non_null (cname);
574 return NULL; 575 return NULL;
575 } 576 }
576 return cname; 577 return cname;
@@ -615,6 +616,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
615 (off != data_size) ) 616 (off != data_size) )
616 { 617 {
617 GNUNET_break_op (0); 618 GNUNET_break_op (0);
619 GNUNET_free_non_null (ptr);
618 return NULL; 620 return NULL;
619 } 621 }
620 return ptr; 622 return ptr;
@@ -632,6 +634,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
632 (off != data_size) ) 634 (off != data_size) )
633 { 635 {
634 GNUNET_break_op (0); 636 GNUNET_break_op (0);
637 GNUNET_free_non_null (mx);
635 return NULL; 638 return NULL;
636 } 639 }
637 GNUNET_asprintf (&result, 640 GNUNET_asprintf (&result,
@@ -709,6 +712,7 @@ GNUNET_NAMESTORE_value_to_string (uint32_t type,
709 (off != data_size) ) 712 (off != data_size) )
710 { 713 {
711 GNUNET_break_op (0); 714 GNUNET_break_op (0);
715 GNUNET_free_non_null (ns);
712 return NULL; 716 return NULL;
713 } 717 }
714 return ns; 718 return ns;