diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-18 15:10:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-18 15:10:58 +0000 |
commit | 8fe29d55719cb024f2e162f1f5289ded8cf91e53 (patch) | |
tree | 97b00197b2c2c96dbdab2c95f2673e0291a7b78d /src/gnsrecord/plugin_gnsrecord_dns.c | |
parent | 8e521a62065eaf390ca8f631bb7d1296f22b3075 (diff) | |
download | gnunet-8fe29d55719cb024f2e162f1f5289ded8cf91e53.tar.gz gnunet-8fe29d55719cb024f2e162f1f5289ded8cf91e53.zip |
-fix leaks, add assertions
Diffstat (limited to 'src/gnsrecord/plugin_gnsrecord_dns.c')
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 5 |
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, |