A fix to remove some spurious code removed a branch and an else
but did not invert the if check like it should. It meant if
process groups were used the spaces was not allocated.
References:
commit
1fcc2b17ab8e88a023d3cd38057e9a5fe93d7313
perror ("malloc");
exit (1);
}
- if (!process_group)
+ if (process_group)
{
pgids = calloc (pids, sizeof (pid_t));
if (!pgids)
free(pid_killed);
free(pid_table);
free(command);
+ free(name_info);
return error;
}