From 4063a80951c4c42a49f3811b81b3b642634dcd31 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 29 Jun 2012 13:54:00 +0000 Subject: -fixes --- src/util/gnunet-uri.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/util/gnunet-uri.c') diff --git a/src/util/gnunet-uri.c b/src/util/gnunet-uri.c index 68e7fa04b..6268360f2 100644 --- a/src/util/gnunet-uri.c +++ b/src/util/gnunet-uri.c @@ -62,7 +62,7 @@ maint_child_death (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) (0 == code) ) ret = 0; else - GNUNET_OS_process_kill (p, SIGTERM); + GNUNET_break (0 == GNUNET_OS_process_kill (p, SIGTERM)); GNUNET_OS_process_destroy (p); } @@ -110,8 +110,10 @@ run (void *cls, char *const *args, const char *cfgfile, &program)) { fprintf (stderr, _("No handler known for subsystem `%s'\n"), subsystem); + GNUNET_free (subsystem); return; } + GNUNET_free (subsystem); rt = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_DISK_pipe_handle (sigpipe, GNUNET_DISK_PIPE_END_READ), @@ -122,6 +124,7 @@ run (void *cls, char *const *args, const char *cfgfile, program, args[0], NULL); + GNUNET_free (program); if (NULL == p) GNUNET_SCHEDULER_cancel (rt); } -- cgit v1.2.3