leak
authorChristian Grothoff <christian@grothoff.org>
Mon, 21 Mar 2011 12:16:01 +0000 (12:16 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 21 Mar 2011 12:16:01 +0000 (12:16 +0000)
src/fs/fs.c

index d748e89ab385932c84e6315aa0676296df305c49..82edfc05135296b79bc142bc11f8e5977bc9fa19 100644 (file)
@@ -1424,6 +1424,11 @@ deserialize_publish_file (void *cls,
     }    
   pc->options = options;
   pc->all_done = all_done;
+  if (NULL == fi_root)
+    {
+      GNUNET_break (0);
+      goto cleanup;    
+    }
   pc->fi = deserialize_file_information (h, fi_root);
   if (pc->fi == NULL)
     {
@@ -2595,6 +2600,8 @@ free_download_context (struct GNUNET_FS_DownloadContext *dc)
       free_download_context (dcc);
     }
   GNUNET_FS_free_download_request_ (dc->top_request);
+  if (NULL != dc->active)    
+    GNUNET_CONTAINER_multihashmap_destroy (dc->active);    
   GNUNET_free (dc);
 }