diff options
Diffstat (limited to 'src/abd/plugin_gnsrecord_abd.c')
-rw-r--r-- | src/abd/plugin_gnsrecord_abd.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/abd/plugin_gnsrecord_abd.c b/src/abd/plugin_gnsrecord_abd.c index c7635b997..850fa9a45 100644 --- a/src/abd/plugin_gnsrecord_abd.c +++ b/src/abd/plugin_gnsrecord_abd.c | |||
@@ -235,8 +235,10 @@ abd_string_to_value (void *cls, | |||
235 | (char *) &sets[1]); | 235 | (char *) &sets[1]); |
236 | for (i = 0; i < entries; i++) | 236 | for (i = 0; i < entries; i++) |
237 | { | 237 | { |
238 | if (0 != set[i].subject_attribute_len) | 238 | if (0 != set[i].subject_attribute_len) { |
239 | GNUNET_free ((char *) set[i].subject_attribute); | 239 | GNUNET_free_nz ((char *) set[i].subject_attribute); |
240 | set[i].subject_attribute = NULL; | ||
241 | } | ||
240 | } | 242 | } |
241 | sets->set_count = htonl (entries); | 243 | sets->set_count = htonl (entries); |
242 | sets->data_size = GNUNET_htonll (tmp_data_size); | 244 | sets->data_size = GNUNET_htonll (tmp_data_size); |