mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
job: Fix memory leak in job_start().
If a new job cannot be started because no slots are free, we return early without freeing the argv argument.
This commit is contained in:
parent
c9df7ba308
commit
70cb863096
@ -139,6 +139,7 @@ Job *job_start(char **argv,
|
||||
|
||||
if (i == MAX_RUNNING_JOBS) {
|
||||
// No free slots
|
||||
shell_free_argv(argv);
|
||||
*status = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user