aboutsummaryrefslogtreecommitdiff
path: root/src/os/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/job.c')
-rw-r--r--src/os/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/job.c b/src/os/job.c
index bb3887d5bd..443fe50a41 100644
--- a/src/os/job.c
+++ b/src/os/job.c
@@ -248,7 +248,6 @@ void job_exit_event(Event event)
job->exit_cb(job, job->data);
// Free the job resources
- shell_free_argv(job->proc_opts.args);
free_job(job);
// Stop polling job status if this was the last
@@ -356,6 +355,7 @@ static void close_cb(uv_handle_t *handle)
rstream_free(job->out);
rstream_free(job->err);
wstream_free(job->in);
+ shell_free_argv(job->proc_opts.args);
free(job->data);
free(job);
}