diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-09 18:25:42 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-09 18:25:42 -0500 |
commit | 8e281b3f70f92535925332207061385f4d1935bc (patch) | |
tree | a44efb7d6b16c9f91bcfd459be72d3b6fc916e91 /src/nvim/os/job.c | |
parent | 57140446174a1e547b4799d75d6182a24ad78b44 (diff) | |
parent | dba8433723f1cb5dbfc7e09fde73219aba646f60 (diff) | |
download | rneovim-8e281b3f70f92535925332207061385f4d1935bc.tar.gz rneovim-8e281b3f70f92535925332207061385f4d1935bc.tar.bz2 rneovim-8e281b3f70f92535925332207061385f4d1935bc.zip |
Merge pull request #1429 from oni-link/fix.job_start.leak
Fix memory leak in job_start().
Diffstat (limited to 'src/nvim/os/job.c')
-rw-r--r-- | src/nvim/os/job.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/os/job.c b/src/nvim/os/job.c index 7ae2a86fc2..17872ab9c9 100644 --- a/src/nvim/os/job.c +++ b/src/nvim/os/job.c @@ -105,7 +105,8 @@ void job_teardown(void) /// Tries to start a new job. /// /// @param argv Argument vector for the process. The first item is the -/// executable to run. +/// executable to run. +/// [consumed] /// @param data Caller data that will be associated with the job /// @param writable If true the job stdin will be available for writing with /// job_write, otherwise it will be redirected to /dev/null @@ -139,6 +140,7 @@ Job *job_start(char **argv, if (i == MAX_RUNNING_JOBS) { // No free slots + shell_free_argv(argv); *status = 0; return NULL; } |