aboutsummaryrefslogtreecommitdiff
path: root/src/gnsrecord
diff options
context:
space:
mode:
Diffstat (limited to 'src/gnsrecord')
-rw-r--r--src/gnsrecord/plugin_gnsrecord_dns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gnsrecord/plugin_gnsrecord_dns.c b/src/gnsrecord/plugin_gnsrecord_dns.c
index e5475118d..3c508ae7e 100644
--- a/src/gnsrecord/plugin_gnsrecord_dns.c
+++ b/src/gnsrecord/plugin_gnsrecord_dns.c
@@ -70,6 +70,7 @@ dns_value_to_string (void *cls,
70 (off != data_size) ) 70 (off != data_size) )
71 { 71 {
72 GNUNET_break_op (0); 72 GNUNET_break_op (0);
73 GNUNET_free_non_null (ns);
73 return NULL; 74 return NULL;
74 } 75 }
75 return ns; 76 return ns;
@@ -105,6 +106,8 @@ dns_value_to_string (void *cls,
105 (off != data_size) ) 106 (off != data_size) )
106 { 107 {
107 GNUNET_break_op (0); 108 GNUNET_break_op (0);
109 if (NULL != soa)
110 GNUNET_DNSPARSER_free_soa (soa);
108 return NULL; 111 return NULL;
109 } 112 }
110 GNUNET_asprintf (&result, 113 GNUNET_asprintf (&result,
@@ -182,6 +185,8 @@ dns_value_to_string (void *cls,
182 (off != data_size) ) 185 (off != data_size) )
183 { 186 {
184 GNUNET_break_op (0); 187 GNUNET_break_op (0);
188 if (NULL != srv)
189 GNUNET_DNSPARSER_free_srv (srv);
185 return NULL; 190 return NULL;
186 } 191 }
187 GNUNET_asprintf (&result, 192 GNUNET_asprintf (&result,