gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r6254 - in GNUnet/src/util: disk os


From: gnunet
Subject: [GNUnet-SVN] r6254 - in GNUnet/src/util: disk os
Date: Mon, 11 Feb 2008 21:50:44 -0700 (MST)

Author: grothoff
Date: 2008-02-11 21:50:44 -0700 (Mon, 11 Feb 2008)
New Revision: 6254

Modified:
   GNUnet/src/util/disk/storage.c
   GNUnet/src/util/os/daemon.c
Log:
leaks

Modified: GNUnet/src/util/disk/storage.c
===================================================================
--- GNUnet/src/util/disk/storage.c      2008-02-12 03:58:08 UTC (rev 6253)
+++ GNUnet/src/util/disk/storage.c      2008-02-12 04:50:44 UTC (rev 6254)
@@ -550,6 +550,8 @@
       GNUNET_GE_LOG_STRERROR_FILE (ectx,
                                    GNUNET_GE_WARNING | GNUNET_GE_USER |
                                    GNUNET_GE_BULK, "opendir", dirName);
+      if (dinfo != NULL)
+       closedir(dinfo);
       return GNUNET_SYSERR;
     }
   while ((finfo = readdir (dinfo)) != NULL)

Modified: GNUnet/src/util/os/daemon.c
===================================================================
--- GNUnet/src/util/os/daemon.c 2008-02-12 03:58:08 UTC (rev 6253)
+++ GNUnet/src/util/os/daemon.c 2008-02-12 04:50:44 UTC (rev 6254)
@@ -113,12 +113,12 @@
       else
         pid = i = spawnvp (_P_NOWAIT, "gnunetd", (const char *const *) args);
 #endif
-      GNUNET_free_non_null (path);
       if (i == -1)
         GNUNET_GE_LOG_STRERROR_FILE (ectx,
                                      GNUNET_GE_ERROR | GNUNET_GE_USER |
                                      GNUNET_GE_BULK, "exec",
                                      path == NULL ? "gnunetd" : path);
+      GNUNET_free_non_null (path);
 #ifndef MINGW
       _exit (-1);
 #endif





reply via email to

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