From a19b4c40a352a4f508b4f8fb889d1c0b51b69238 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 21 Mar 2011 12:16:01 +0000 Subject: [PATCH] leak --- src/fs/fs.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fs/fs.c b/src/fs/fs.c index d748e89ab..82edfc051 100644 --- a/src/fs/fs.c +++ b/src/fs/fs.c @@ -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); } -- 2.25.1