-code deduplication in rsa sign/verify code
[oweals/gnunet.git] / src / util / os_priority.c
index 850378c26cc7f9abca6c9a35445b68f94ee8fb9b..20d54341dbea9bfc6d5c4f8681006d1ebf1e381e 100644 (file)
@@ -860,7 +860,10 @@ start_process (int pipe_control,
     return NULL; /* not executable */
   if ( (GNUNET_YES == pipe_control) &&
        (GNUNET_OK != npipe_setup (&childpipename)) )
-    return NULL;  
+  {
+    GNUNET_free (childpipename);
+    return NULL;
+  }
   if (NULL != pipe_stdout)
   {
     GNUNET_assert (GNUNET_OK ==
@@ -1580,8 +1583,6 @@ GNUNET_OS_process_status (struct GNUNET_OS_Process *proc,
 
   GNUNET_assert (0 != proc);
   ret = waitpid (proc->pid, &status, WNOHANG);
-  fprintf (stderr, "Waitpid %d returned %d\n",
-          proc->pid, ret);
   if (ret < 0)
   {
     LOG_STRERROR (GNUNET_ERROR_TYPE_WARNING, "waitpid");