summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2015-01-24 23:01:29 +0000
committerLRN <lrn1986@gmail.com>2015-01-24 23:01:29 +0000
commitf530fd6ab2ab7743f975d8d1abbdeeb012e06079 (patch)
tree5933bdd6b23c521b7b3dfd2799f9eeeded519fcf /src/testing
parentb321893de2f2dddd32a3fe2d727593c71a4875f3 (diff)
Fix the use of (GNUNET_)strdup and (GNUNET_)free
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.c8
1 files changed, 4 insertions, 4 deletions
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);