aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.c
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/testing.c
parentb321893de2f2dddd32a3fe2d727593c71a4875f3 (diff)
downloadgnunet-f530fd6ab2ab7743f975d8d1abbdeeb012e06079.tar.gz
gnunet-f530fd6ab2ab7743f975d8d1abbdeeb012e06079.zip
Fix the use of (GNUNET_)strdup and (GNUNET_)free
Diffstat (limited to 'src/testing/testing.c')
-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,
1253 { 1253 {
1254 /* No prefix */ 1254 /* No prefix */
1255 GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); 1255 GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary);
1256 peer->args = strdup (""); 1256 peer->args = GNUNET_strdup ("");
1257 } 1257 }
1258 else 1258 else
1259 { 1259 {
1260 peer->args = strdup (libexec_binary); 1260 peer->args = GNUNET_strdup (libexec_binary);
1261 } 1261 }
1262 peer->system = system; 1262 peer->system = system;
1263 peer->key_number = key_number; 1263 peer->key_number = key_number;
@@ -1724,10 +1724,10 @@ GNUNET_TESTING_service_run (const char *testdir,
1724 { 1724 {
1725 /* No prefix */ 1725 /* No prefix */
1726 GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary); 1726 GNUNET_asprintf(&peer->main_binary, "%s", libexec_binary);
1727 peer->args = strdup (""); 1727 peer->args = GNUNET_strdup ("");
1728 } 1728 }
1729 else 1729 else
1730 peer->args = strdup (libexec_binary); 1730 peer->args = GNUNET_strdup (libexec_binary);
1731 1731
1732 GNUNET_free (libexec_binary); 1732 GNUNET_free (libexec_binary);
1733 GNUNET_free (binary); 1733 GNUNET_free (binary);