aboutsummaryrefslogtreecommitdiff
path: root/src/arm/gnunet-arm.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-09 20:21:48 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-09 20:21:48 +0000
commit67d4a36d23f6053cc6a34eb9270aaa14ecae2ca2 (patch)
treed32c8759e15372f36cdf79fdb0d183372b13876a /src/arm/gnunet-arm.c
parenta1f112852c93046ff3bbcac107cf178c56f23bf2 (diff)
downloadgnunet-67d4a36d23f6053cc6a34eb9270aaa14ecae2ca2.tar.gz
gnunet-67d4a36d23f6053cc6a34eb9270aaa14ecae2ca2.zip
-fix minor leaks in gnunet-arm (#3105)
Diffstat (limited to 'src/arm/gnunet-arm.c')
-rw-r--r--src/arm/gnunet-arm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/arm/gnunet-arm.c b/src/arm/gnunet-arm.c
index a492fac5b..b960d0292 100644
--- a/src/arm/gnunet-arm.c
+++ b/src/arm/gnunet-arm.c
@@ -417,7 +417,9 @@ init_callback (void *cls,
417 417
418 if (GNUNET_ARM_REQUEST_SENT_OK != rs) 418 if (GNUNET_ARM_REQUEST_SENT_OK != rs)
419 { 419 {
420 GNUNET_asprintf (&msg, _("Failed to send a request to start the `%s' service: %%s\n"), init); 420 GNUNET_asprintf (&msg,
421 _("Failed to send a request to start the `%s' service: %%s\n"),
422 init);
421 FPRINTF (stdout, msg, req_string (rs)); 423 FPRINTF (stdout, msg, req_string (rs));
422 GNUNET_free (msg); 424 GNUNET_free (msg);
423 GNUNET_SCHEDULER_shutdown (); 425 GNUNET_SCHEDULER_shutdown ();
@@ -436,6 +438,7 @@ init_callback (void *cls,
436 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 438 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
437 "Service %s [re]started successfully\n", 439 "Service %s [re]started successfully\n",
438 init); 440 init);
441 GNUNET_free (init);
439 init = NULL; 442 init = NULL;
440 GNUNET_SCHEDULER_add_now (&action_loop, NULL); 443 GNUNET_SCHEDULER_add_now (&action_loop, NULL);
441} 444}
@@ -482,7 +485,9 @@ term_callback (void *cls,
482 } 485 }
483 486
484 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 487 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
485 "Service %s stopped successfully\n", term); 488 "Service %s stopped successfully\n",
489 term);
490 GNUNET_free (term);
486 term = NULL; 491 term = NULL;
487 GNUNET_SCHEDULER_add_now (&action_loop, NULL); 492 GNUNET_SCHEDULER_add_now (&action_loop, NULL);
488} 493}