gnunet-svn
[Top][All Lists]
Advanced

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

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


From: grothoff
Subject: [GNUnet-SVN] r1774 - GNUnet/src/applications/fs/fsui
Date: Fri, 19 Aug 2005 23:40:52 -0700 (PDT)

Author: grothoff
Date: 2005-08-19 23:40:51 -0700 (Fri, 19 Aug 2005)
New Revision: 1774

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

Modified: GNUnet/src/applications/fs/fsui/fsui.c
===================================================================
--- GNUnet/src/applications/fs/fsui/fsui.c      2005-08-20 06:36:50 UTC (rev 
1773)
+++ GNUnet/src/applications/fs/fsui/fsui.c      2005-08-20 06:40:51 UTC (rev 
1774)
@@ -366,10 +366,10 @@
   FREE(gh);
   strcat(fn, DIR_SEPARATOR_STR);
   strcat(fn, name);
-  ret->ipc = IPC_SEMAPHORE_NEW(fn,
-                              1);
   ret->name = fn;
   if (doResume) {
+    ret->ipc = IPC_SEMAPHORE_NEW(fn,
+                                1);
     LOG(LOG_INFO,
        "Getting IPC lock for FSUI (%s).\n",
        fn);
@@ -625,8 +625,9 @@
                          "open",
                          fn);
     }
-  } else
+  } else {
     ret->ipc = NULL;
+  }
   MUTEX_CREATE_RECURSIVE(&ret->lock);
   ret->ecb = cb;
   ret->ecbClosure = closure;





reply via email to

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