aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-09-24 12:39:08 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-09-24 12:39:08 +0000
commit13d2b155da4dd6c490abec845b2ff264c6c571ba (patch)
tree6df7a7a6515a6f4c9006ed64370c63b34915304f /src/util
parent1520a098258938a71b0a74c87a1a7138a00281b8 (diff)
downloadgnunet-13d2b155da4dd6c490abec845b2ff264c6c571ba.tar.gz
gnunet-13d2b155da4dd6c490abec845b2ff264c6c571ba.zip
coverity bugs
Diffstat (limited to 'src/util')
-rw-r--r--src/util/os_priority.c5
-rw-r--r--src/util/test_os_start_process.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/util/os_priority.c b/src/util/os_priority.c
index 88eee70dd..20d54341d 100644
--- a/src/util/os_priority.c
+++ b/src/util/os_priority.c
@@ -860,7 +860,10 @@ start_process (int pipe_control,
860 return NULL; /* not executable */ 860 return NULL; /* not executable */
861 if ( (GNUNET_YES == pipe_control) && 861 if ( (GNUNET_YES == pipe_control) &&
862 (GNUNET_OK != npipe_setup (&childpipename)) ) 862 (GNUNET_OK != npipe_setup (&childpipename)) )
863 return NULL; 863 {
864 GNUNET_free (childpipename);
865 return NULL;
866 }
864 if (NULL != pipe_stdout) 867 if (NULL != pipe_stdout)
865 { 868 {
866 GNUNET_assert (GNUNET_OK == 869 GNUNET_assert (GNUNET_OK ==
diff --git a/src/util/test_os_start_process.c b/src/util/test_os_start_process.c
index e24e09500..f732fbbdf 100644
--- a/src/util/test_os_start_process.c
+++ b/src/util/test_os_start_process.c
@@ -197,6 +197,7 @@ check_kill ()
197 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES); 197 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES);
198 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL)) 198 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL))
199 { 199 {
200 GNUNET_free (fn);
200 return 1; 201 return 1;
201 } 202 }
202 proc = 203 proc =
@@ -230,6 +231,7 @@ check_instant_kill ()
230 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES); 231 hello_pipe_stdout = GNUNET_DISK_pipe (GNUNET_YES, GNUNET_YES, GNUNET_NO, GNUNET_YES);
231 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL)) 232 if ((hello_pipe_stdout == NULL) || (hello_pipe_stdin == NULL))
232 { 233 {
234 GNUNET_free (fn);
233 return 1; 235 return 1;
234 } 236 }
235 proc = 237 proc =