From f530fd6ab2ab7743f975d8d1abbdeeb012e06079 Mon Sep 17 00:00:00 2001 From: LRN Date: Sat, 24 Jan 2015 23:01:29 +0000 Subject: Fix the use of (GNUNET_)strdup and (GNUNET_)free --- src/testing/testing.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/testing') diff --git a/src/testing/testing.c b/src/testing/testing.c index a4fdd38ca..88ee86a4c 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c @@ -1253,11 +1253,11 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, { /* No prefix */ GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); - peer->args = strdup (""); + peer->args = GNUNET_strdup (""); } else { - peer->args = strdup (libexec_binary); + peer->args = GNUNET_strdup (libexec_binary); } peer->system = system; peer->key_number = key_number; @@ -1724,10 +1724,10 @@ GNUNET_TESTING_service_run (const char *testdir, { /* No prefix */ GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); - peer->args = strdup (""); + peer->args = GNUNET_strdup (""); } else - peer->args = strdup (libexec_binary); + peer->args = GNUNET_strdup (libexec_binary); GNUNET_free (libexec_binary); GNUNET_free (binary); -- cgit v1.2.3