aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_transport_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-08-02 13:29:06 +0000
committerChristian Grothoff <christian@grothoff.org>2011-08-02 13:29:06 +0000
commit4c041403c25495dd8a9611468c1f6d6dbbb35a68 (patch)
treeed2d307549987f98492d3d969fd58f50705d36eb /src/transport/test_transport_api.c
parent799366d648c851454494b3040d83974294374747 (diff)
downloadgnunet-4c041403c25495dd8a9611468c1f6d6dbbb35a68.tar.gz
gnunet-4c041403c25495dd8a9611468c1f6d6dbbb35a68.zip
fixleak
Diffstat (limited to 'src/transport/test_transport_api.c')
-rw-r--r--src/transport/test_transport_api.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/transport/test_transport_api.c b/src/transport/test_transport_api.c
index cdad7b798..84cb2421d 100644
--- a/src/transport/test_transport_api.c
+++ b/src/transport/test_transport_api.c
@@ -296,14 +296,9 @@ setup_peer (struct PeerContext *p,
296 296
297 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname)); 297 GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));
298 if (GNUNET_CONFIGURATION_have_value (p->cfg,"PATHS", "SERVICEHOME")) 298 if (GNUNET_CONFIGURATION_have_value (p->cfg,"PATHS", "SERVICEHOME"))
299 { 299 GNUNET_CONFIGURATION_get_value_string (p->cfg, "PATHS", "SERVICEHOME", &p->servicehome);
300 GNUNET_assert (GNUNET_OK == 300 if (NULL != p->servicehome)
301 GNUNET_CONFIGURATION_get_value_string (p->cfg, 301 GNUNET_DISK_directory_remove (p->servicehome);
302 "PATHS",
303 "SERVICEHOME",
304 &p->servicehome));
305 GNUNET_DISK_directory_remove (p->servicehome);
306 }
307 302
308#if START_ARM 303#if START_ARM
309 p->arm_proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm", 304 p->arm_proc = GNUNET_OS_start_process (NULL, NULL, "gnunet-service-arm",
@@ -315,8 +310,6 @@ setup_peer (struct PeerContext *p,
315#endif 310#endif
316 311
317 312
318 if (GNUNET_CONFIGURATION_have_value (p->cfg,"PATHS", "SERVICEHOME"))
319 GNUNET_CONFIGURATION_get_value_string (p->cfg, "PATHS", "SERVICEHOME", &p->servicehome);
320 313
321 if (is_https) 314 if (is_https)
322 { 315 {