gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6668 - GNUnet/src/applications/fs/fsui


From: gnunet
Subject: [GNUnet-SVN] r6668 - GNUnet/src/applications/fs/fsui
Date: Thu, 3 Apr 2008 09:13:50 -0600 (MDT)

Author: holindho
Date: 2008-04-03 09:13:50 -0600 (Thu, 03 Apr 2008)
New Revision: 6668

Modified:
   GNUnet/src/applications/fs/fsui/recursivetest.c
Log:
fix leak


Modified: GNUnet/src/applications/fs/fsui/recursivetest.c
===================================================================
--- GNUnet/src/applications/fs/fsui/recursivetest.c     2008-04-03 14:42:58 UTC 
(rev 6667)
+++ GNUnet/src/applications/fs/fsui/recursivetest.c     2008-04-03 15:13:50 UTC 
(rev 6668)
@@ -125,12 +125,15 @@
 checkHierarchy (unsigned int i, const char *tree)
 {
   char *fn;
+  int res;
 
   fn = makeName(i);
   if (GNUNET_disk_directory_test (NULL, fn) != GNUNET_YES)
     return GNUNET_SYSERR;
-  return (makeHierarchyHelper (fn, tree, 0, 1) == -1) ?
+  res = (makeHierarchyHelper (fn, tree, 0, 1) == -1) ?
          GNUNET_SYSERR : GNUNET_OK;
+  GNUNET_free(fn);
+  return res;
 }
 
 
@@ -359,6 +362,7 @@
     }
   CHECK (search == NULL);
   CHECK (download != NULL);
+  /* TODO: how to unindex empty directories? */
 /*  waitForEvent = GNUNET_FSUI_unindex_completed;
   unindex = GNUNET_FSUI_unindex_start (ctx, fn);
   CHECK (unindex != NULL);





reply via email to

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