=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/job.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- src/usr.bin/tmux/job.c 2009/10/11 07:30:07 1.4 +++ src/usr.bin/tmux/job.c 2009/10/11 08:58:05 1.5 @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.4 2009/10/11 07:30:07 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.5 2009/10/11 08:58:05 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -70,7 +70,6 @@ while (!RB_EMPTY(jobs)) { job = RB_ROOT(jobs); RB_REMOVE(jobs, jobs, job); - SLIST_REMOVE(&all_jobs, job, job, lentry); job_free(job); } } @@ -120,6 +119,7 @@ { job_kill(job); + SLIST_REMOVE(&all_jobs, job, job, lentry); xfree(job->cmd); if (job->freefn != NULL && job->data != NULL)