gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r9674 - GNUnet/src/applications/testing


From: gnunet
Subject: [GNUnet-SVN] r9674 - GNUnet/src/applications/testing
Date: Wed, 2 Dec 2009 20:05:37 +0100

Author: nevans
Date: 2009-12-02 20:05:37 +0100 (Wed, 02 Dec 2009)
New Revision: 9674

Modified:
   GNUnet/src/applications/testing/remote.c
Log:
coverity stuff

Modified: GNUnet/src/applications/testing/remote.c
===================================================================
--- GNUnet/src/applications/testing/remote.c    2009-12-02 18:37:12 UTC (rev 
9673)
+++ GNUnet/src/applications/testing/remote.c    2009-12-02 19:05:37 UTC (rev 
9674)
@@ -216,9 +216,13 @@
     }
   else
     {
+      pclose (output);
+      GNUNET_free_non_null (output);
       return -1;
     }
 
+  pclose (output);
+  GNUNET_free_non_null (output);
   if (is_local)
     {
       length = snprintf (NULL, 0, "kill %d", pid);
@@ -1177,6 +1181,7 @@
   GNUNET_free (remote_pid_path);
   GNUNET_free (data_dir);
   GNUNET_free (ssh_username);
+  GNUNET_free (prepend_exec);
   GNUNET_free (control_host);
   GNUNET_free (hostnames);
   GNUNET_free (remote_config_path);
@@ -1341,6 +1346,7 @@
   void *unusedVoid;
   globalDotFile = dotOutFile;
   ret = GNUNET_OK;
+  totalConnections = 0;
   connected = GNUNET_multi_hash_map_create (number_of_daemons * 3);
 
   daemon_list =
@@ -1551,7 +1557,10 @@
 
   GNUNET_multi_hash_map_destroy (connected);
   if (ret != GNUNET_OK)
-    return ret;
+    {
+      GNUNET_free (daemon_list);
+      return ret;
+    }
   else
     {
       GNUNET_free (daemon_list);





reply via email to

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