From: Christian Grothoff Date: Mon, 13 Feb 2012 14:54:37 +0000 (+0000) Subject: -fix leak X-Git-Tag: initial-import-from-subversion-38251~14877 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6cede455119f5beb6614a6a74a183421ccfb170d;p=oweals%2Fgnunet.git -fix leak --- diff --git a/src/fs/gnunet-helper-fs-publish.c b/src/fs/gnunet-helper-fs-publish.c index 46460248d..9594c19c2 100644 --- a/src/fs/gnunet-helper-fs-publish.c +++ b/src/fs/gnunet-helper-fs-publish.c @@ -308,15 +308,14 @@ preprocess_file (const char *filename, GNUNET_DISK_directory_scan (filename, &scan_callback, &rc); - if (rc.stop == GNUNET_YES) + if ( (rc.stop == GNUNET_YES) || + (GNUNET_OK != + write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY, + "..", 3)) ) { free_tree (item); return GNUNET_SYSERR; } - if (GNUNET_OK != - write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY, - "..", 3)) - return GNUNET_SYSERR; } *dst = item; return GNUNET_OK;