diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-21 12:16:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-21 12:16:01 +0000 |
commit | a19b4c40a352a4f508b4f8fb889d1c0b51b69238 (patch) | |
tree | 9b17b2401c2c5738a19ca4c561da4aa3a5ffe56f /src/fs | |
parent | c2b6ca91391e574e3fd5dfb88bd306ef88ca9fc6 (diff) | |
download | gnunet-a19b4c40a352a4f508b4f8fb889d1c0b51b69238.tar.gz gnunet-a19b4c40a352a4f508b4f8fb889d1c0b51b69238.zip |
leak
Diffstat (limited to 'src/fs')
-rw-r--r-- | src/fs/fs.c | 7 |
1 files changed, 7 insertions, 0 deletions
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, | |||
1424 | } | 1424 | } |
1425 | pc->options = options; | 1425 | pc->options = options; |
1426 | pc->all_done = all_done; | 1426 | pc->all_done = all_done; |
1427 | if (NULL == fi_root) | ||
1428 | { | ||
1429 | GNUNET_break (0); | ||
1430 | goto cleanup; | ||
1431 | } | ||
1427 | pc->fi = deserialize_file_information (h, fi_root); | 1432 | pc->fi = deserialize_file_information (h, fi_root); |
1428 | if (pc->fi == NULL) | 1433 | if (pc->fi == NULL) |
1429 | { | 1434 | { |
@@ -2595,6 +2600,8 @@ free_download_context (struct GNUNET_FS_DownloadContext *dc) | |||
2595 | free_download_context (dcc); | 2600 | free_download_context (dcc); |
2596 | } | 2601 | } |
2597 | GNUNET_FS_free_download_request_ (dc->top_request); | 2602 | GNUNET_FS_free_download_request_ (dc->top_request); |
2603 | if (NULL != dc->active) | ||
2604 | GNUNET_CONTAINER_multihashmap_destroy (dc->active); | ||
2598 | GNUNET_free (dc); | 2605 | GNUNET_free (dc); |
2599 | } | 2606 | } |
2600 | 2607 | ||