aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index a3ef24f295..7e020a9bce 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -20313,11 +20313,11 @@ static void on_job_event(Event event)
clear_tv(&rettv);
end:
- kmp_free(JobEventPool, job_event_pool, ev);
if (!ev->received) {
// exit event, safe to free job data now
term_job_data_decref(ev->data);
}
+ kmp_free(JobEventPool, job_event_pool, ev);
}
static void script_host_eval(char *name, typval_T *argvars, typval_T *rettv)