[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r25032 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r25032 - gnunet/src/testing |
Date: |
Sat, 17 Nov 2012 13:24:29 +0100 |
Author: harsha
Date: 2012-11-17 13:24:29 +0100 (Sat, 17 Nov 2012)
New Revision: 25032
Modified:
gnunet/src/testing/testing.c
Log:
fix memleak
Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c 2012-11-17 08:57:03 UTC (rev 25031)
+++ gnunet/src/testing/testing.c 2012-11-17 12:24:29 UTC (rev 25032)
@@ -937,7 +937,6 @@
}
peer = GNUNET_malloc (sizeof (struct GNUNET_TESTING_Peer));
peer->cfgfile = config_filename; /* Free in peer_destroy */
-
libexec_binary = GNUNET_OS_get_libexec_binary_path ("gnunet-service-arm");
if (GNUNET_SYSERR == GNUNET_CONFIGURATION_get_value_string(cfg, "arm",
"PREFIX", &peer->main_binary))
{
@@ -947,10 +946,8 @@
}
else
peer->args = strdup (libexec_binary);
-
peer->system = system;
peer->key_number = key_number;
-
GNUNET_free (libexec_binary);
return peer;
}
@@ -1216,7 +1213,7 @@
return 1;
}
GNUNET_free (peer->main_binary);
-
+ GNUNET_free (peer->args);
GNUNET_asprintf (&binary, "gnunet-service-%s", service_name);
libexec_binary = GNUNET_OS_get_libexec_binary_path (binary);
if (GNUNET_SYSERR == GNUNET_CONFIGURATION_get_value_string(cfg,
service_name, "PREFIX", &peer->main_binary))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r25032 - gnunet/src/testing,
gnunet <=