if (GNUNET_ARM_REQUEST_SENT_OK != rs)
{
- GNUNET_asprintf (&msg, _("Failed to send a request to start the `%s' service: %%s\n"), init);
+ GNUNET_asprintf (&msg,
+ _("Failed to send a request to start the `%s' service: %%s\n"),
+ init);
FPRINTF (stdout, msg, req_string (rs));
GNUNET_free (msg);
GNUNET_SCHEDULER_shutdown ();
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Service %s [re]started successfully\n",
init);
+ GNUNET_free (init);
init = NULL;
GNUNET_SCHEDULER_add_now (&action_loop, NULL);
}
}
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Service %s stopped successfully\n", term);
+ "Service %s stopped successfully\n",
+ term);
+ GNUNET_free (term);
term = NULL;
GNUNET_SCHEDULER_add_now (&action_loop, NULL);
}
GNUNET_asprintf (&msg, "%s", _("Failed to request a list of services: %s\n"));
FPRINTF (stdout, msg, req_string (rs));
GNUNET_free (msg);
+ ret = 3;
GNUNET_SCHEDULER_shutdown ();
}
if (NULL == list)
{
FPRINTF (stderr, "%s", _("Error communicating with ARM. ARM not running?\n"));
GNUNET_SCHEDULER_shutdown ();
+ ret = 3;
return;
}
FPRINTF (stdout, "%s", _("Running services:\n"));