From 0ed606e0c38d62777110f204c4bccdfd890a34ea Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 10 Jul 2012 11:53:02 +0000 Subject: xfree is not particularly helpful, remove it. From Thomas Adam. --- usr.bin/tmux/job.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/tmux/job.c') diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c index dab589e89f7..f812eec6d27 100644 --- a/usr.bin/tmux/job.c +++ b/usr.bin/tmux/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.26 2012/01/29 02:22:11 nicm Exp $ */ +/* $OpenBSD: job.c,v 1.27 2012/07/10 11:53:01 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -117,7 +118,7 @@ job_free(struct job *job) log_debug("free job %p: %s", job, job->cmd); LIST_REMOVE(job, lentry); - xfree(job->cmd); + free(job->cmd); if (job->freefn != NULL && job->data != NULL) job->freefn(job->data); @@ -129,7 +130,7 @@ job_free(struct job *job) if (job->fd != -1) close(job->fd); - xfree(job); + free(job); } /* Job buffer error callback. */ -- cgit v1.2.3