aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-uri.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-06-29 13:54:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-06-29 13:54:00 +0000
commit4063a80951c4c42a49f3811b81b3b642634dcd31 (patch)
tree6f94fefa5c2b61bcc45f1f87bb9eb8b2eb34308e /src/util/gnunet-uri.c
parent722980c056f396b25b5b15d6a805654d02b3c5ef (diff)
downloadgnunet-4063a80951c4c42a49f3811b81b3b642634dcd31.tar.gz
gnunet-4063a80951c4c42a49f3811b81b3b642634dcd31.zip
-fixes
Diffstat (limited to 'src/util/gnunet-uri.c')
-rw-r--r--src/util/gnunet-uri.c5
1 files changed, 4 insertions, 1 deletions
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)
62 (0 == code) ) 62 (0 == code) )
63 ret = 0; 63 ret = 0;
64 else 64 else
65 GNUNET_OS_process_kill (p, SIGTERM); 65 GNUNET_break (0 == GNUNET_OS_process_kill (p, SIGTERM));
66 GNUNET_OS_process_destroy (p); 66 GNUNET_OS_process_destroy (p);
67} 67}
68 68
@@ -110,8 +110,10 @@ run (void *cls, char *const *args, const char *cfgfile,
110 &program)) 110 &program))
111 { 111 {
112 fprintf (stderr, _("No handler known for subsystem `%s'\n"), subsystem); 112 fprintf (stderr, _("No handler known for subsystem `%s'\n"), subsystem);
113 GNUNET_free (subsystem);
113 return; 114 return;
114 } 115 }
116 GNUNET_free (subsystem);
115 rt = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL, 117 rt = GNUNET_SCHEDULER_add_read_file (GNUNET_TIME_UNIT_FOREVER_REL,
116 GNUNET_DISK_pipe_handle (sigpipe, 118 GNUNET_DISK_pipe_handle (sigpipe,
117 GNUNET_DISK_PIPE_END_READ), 119 GNUNET_DISK_PIPE_END_READ),
@@ -122,6 +124,7 @@ run (void *cls, char *const *args, const char *cfgfile,
122 program, 124 program,
123 args[0], 125 args[0],
124 NULL); 126 NULL);
127 GNUNET_free (program);
125 if (NULL == p) 128 if (NULL == p)
126 GNUNET_SCHEDULER_cancel (rt); 129 GNUNET_SCHEDULER_cancel (rt);
127} 130}