aboutsummaryrefslogtreecommitdiff
path: root/job.c
diff options
context:
space:
mode:
Diffstat (limited to 'job.c')
-rw-r--r--job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/job.c b/job.c
index 03ee386b..1ec87d99 100644
--- a/job.c
+++ b/job.c
@@ -123,10 +123,10 @@ job_free(struct job *job)
if (job->pid != -1)
kill(job->pid, SIGTERM);
- if (job->fd != -1)
- close(job->fd);
if (job->event != NULL)
bufferevent_free(job->event);
+ if (job->fd != -1)
+ close(job->fd);
xfree(job);
}