From ab1455c0d09ddaf5fbcf7ca69e47fb21e030ecfd Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Sat, 17 Nov 2012 12:24:29 +0000 Subject: fix memleak --- src/testing/testing.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') diff --git a/src/testing/testing.c b/src/testing/testing.c index 7151cbd09..d707cd597 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -937,7 +937,6 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, } 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 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, } else peer->args = strdup (libexec_binary); - peer->system = system; peer->key_number = key_number; - GNUNET_free (libexec_binary); return peer; } @@ -1216,7 +1213,7 @@ GNUNET_TESTING_service_run (const char *testdir, 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)) -- cgit v1.2.3