gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r19780 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r19780 - gnunet/src/fs
Date: Mon, 13 Feb 2012 15:54:37 +0100

Author: grothoff
Date: 2012-02-13 15:54:37 +0100 (Mon, 13 Feb 2012)
New Revision: 19780

Modified:
   gnunet/src/fs/gnunet-helper-fs-publish.c
Log:
-fix leak

Modified: gnunet/src/fs/gnunet-helper-fs-publish.c
===================================================================
--- gnunet/src/fs/gnunet-helper-fs-publish.c    2012-02-13 14:21:45 UTC (rev 
19779)
+++ gnunet/src/fs/gnunet-helper-fs-publish.c    2012-02-13 14:54:37 UTC (rev 
19780)
@@ -308,15 +308,14 @@
     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;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]