=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/job.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- src/usr.bin/tmux/job.c 2011/01/26 01:54:56 1.25 +++ src/usr.bin/tmux/job.c 2012/01/29 02:22:11 1.26 @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.25 2011/01/26 01:54:56 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.26 2012/01/29 02:22:11 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -124,10 +124,10 @@ 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); }