summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn_job_sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nxt_event_conn_job_sendfile.c')
-rw-r--r--src/nxt_event_conn_job_sendfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_event_conn_job_sendfile.c b/src/nxt_event_conn_job_sendfile.c
index bf2219f2..a283de86 100644
--- a/src/nxt_event_conn_job_sendfile.c
+++ b/src/nxt_event_conn_job_sendfile.c
@@ -182,7 +182,7 @@ nxt_event_conn_job_sendfile_return(nxt_task_t *task, void *obj, void *data)
b = jbs->out;
/* The job must be destroyed before connection error handler. */
- nxt_job_destroy(jbs);
+ nxt_job_destroy(task, jbs);
if (c->write_state->process_buffers) {
b = nxt_event_conn_job_sendfile_completion(task, c, b);