From 6cede455119f5beb6614a6a74a183421ccfb170d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 13 Feb 2012 14:54:37 +0000 Subject: [PATCH] -fix leak --- src/fs/gnunet-helper-fs-publish.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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; -- 2.25.1