improving script
[oweals/gnunet.git] / src / arm / gnunet-service-arm.c
index 8f3406b38d6aeae4eb741e58c4eab1fe8cc2c2ed..4417a68a0630e29a4ce4bd503a316b5715f2f830 100644 (file)
@@ -282,7 +282,7 @@ start_process (struct ServiceList *sl)
               "Starting service `%s' using binary `%s' and configuration `%s'\n",
               sl->name, sl->binary, sl->config);
 #endif
-  argv_size = 5;
+  argv_size = 6;
   if (use_debug)
     argv_size += 2;
   lopos = loprefix;
@@ -303,6 +303,7 @@ start_process (struct ServiceList *sl)
   argv = GNUNET_malloc (argv_size * sizeof (char *));
   argv_size = 0;
   lopos = loprefix;
+
   while ('\0' != *lopos)
     {
       while (*lopos == ' ')
@@ -348,6 +349,7 @@ start_process (struct ServiceList *sl)
   sl->pid = GNUNET_OS_start_process_v (firstarg, argv);
   GNUNET_free (argv);
   GNUNET_free (loprefix);
+  GNUNET_free (options);
 }
 
 
@@ -398,8 +400,6 @@ start_service (struct GNUNET_SERVER_Client *client, const char *servicename)
       GNUNET_free (config);
       return;
     }
-  GNUNET_log (GNUNET_ERROR_TYPE_INFO,
-              _("Preparing to start `%s'\n"), servicename);
   sl = GNUNET_malloc (sizeof (struct ServiceList));
   sl->name = GNUNET_strdup (servicename);
   sl->next = running;