undo
authorChristian Grothoff <christian@grothoff.org>
Mon, 5 Apr 2010 13:36:21 +0000 (13:36 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 5 Apr 2010 13:36:21 +0000 (13:36 +0000)
src/fs/gnunet-publish.c

index fc00fd26c623be7f51f2eb0bf7129cec5e1f6265..f341594c5d1ae71e91c6bed5aaaba9f6a313918d 100644 (file)
@@ -301,9 +301,13 @@ publish_inspector (void *cls,
       topKeywords = NULL;
     }
   if (NULL != meta) 
-    GNUNET_CONTAINER_meta_data_iterate (meta,
-                                       &meta_merger,
-                                       m);
+    {
+      GNUNET_CONTAINER_meta_data_iterate (meta,
+                                         &meta_merger,
+                                         m);
+      GNUNET_CONTAINER_meta_data_destroy (meta);
+      meta = NULL;
+    }
   if (! do_disable_creation_time)
     GNUNET_CONTAINER_meta_data_add_publication_date (m);
   if (extract_only)