aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-helper-fs-publish.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-02-13 14:54:37 +0000
committerChristian Grothoff <christian@grothoff.org>2012-02-13 14:54:37 +0000
commit6cede455119f5beb6614a6a74a183421ccfb170d (patch)
treee348c3c897f5059415978d14c045b727d01ac959 /src/fs/gnunet-helper-fs-publish.c
parent51b57a731dc7e3cf6e5d9bcbd30a72cdf8d64785 (diff)
downloadgnunet-6cede455119f5beb6614a6a74a183421ccfb170d.tar.gz
gnunet-6cede455119f5beb6614a6a74a183421ccfb170d.zip
-fix leak
Diffstat (limited to 'src/fs/gnunet-helper-fs-publish.c')
-rw-r--r--src/fs/gnunet-helper-fs-publish.c9
1 files 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,
308 GNUNET_DISK_directory_scan (filename, 308 GNUNET_DISK_directory_scan (filename,
309 &scan_callback, 309 &scan_callback,
310 &rc); 310 &rc);
311 if (rc.stop == GNUNET_YES) 311 if ( (rc.stop == GNUNET_YES) ||
312 (GNUNET_OK !=
313 write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY,
314 "..", 3)) )
312 { 315 {
313 free_tree (item); 316 free_tree (item);
314 return GNUNET_SYSERR; 317 return GNUNET_SYSERR;
315 } 318 }
316 if (GNUNET_OK !=
317 write_message (GNUNET_MESSAGE_TYPE_FS_PUBLISH_HELPER_PROGRESS_DIRECTORY,
318 "..", 3))
319 return GNUNET_SYSERR;
320 } 319 }
321 *dst = item; 320 *dst = item;
322 return GNUNET_OK; 321 return GNUNET_OK;