diff options
-rw-r--r-- | src/fs/fs_test_lib.c | 2 | ||||
-rw-r--r-- | src/gnsrecord/plugin_gnsrecord_dns.c | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index 3898f798e..1db777a7a 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c | |||
@@ -410,6 +410,7 @@ publish_fs_connect_complete_cb (void *cls, | |||
410 | po->publish_tmp_file, | 410 | po->publish_tmp_file, |
411 | NULL, NULL, po->do_index, | 411 | NULL, NULL, po->do_index, |
412 | &bo); | 412 | &bo); |
413 | GNUNET_assert (NULL != fi); | ||
413 | } | 414 | } |
414 | else | 415 | else |
415 | { | 416 | { |
@@ -418,6 +419,7 @@ publish_fs_connect_complete_cb (void *cls, | |||
418 | &file_generator, &po->publish_seed, | 419 | &file_generator, &po->publish_seed, |
419 | NULL, NULL, | 420 | NULL, NULL, |
420 | po->do_index, &bo); | 421 | po->do_index, &bo); |
422 | GNUNET_assert (NULL != fi); | ||
421 | } | 423 | } |
422 | po->publish_context = | 424 | po->publish_context = |
423 | GNUNET_FS_publish_start (po->fs, fi, NULL, NULL, NULL, | 425 | GNUNET_FS_publish_start (po->fs, fi, NULL, NULL, NULL, |
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, |