summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gmx.com>2012-07-11 19:34:16 +0000
committerTiago Cunha <tcunha@gmx.com>2012-07-11 19:34:16 +0000
commita432fcd30617610b46d65f49b7513bf5da5694de (patch)
treeb76ab1cefbd5a0020fa789b2c925f31ef9d5796b /job.c
parent06d27e94b25a49f7a9824e8bfdf6fb04f6baf46e (diff)
Sync OpenBSD patchset 1150:
xfree is not particularly helpful, remove it. From Thomas Adam.
Diffstat (limited to 'job.c')
-rw-r--r--job.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/job.c b/job.c
index 1ec87d99..c648eae0 100644
--- a/job.c
+++ b/job.c
@@ -20,6 +20,7 @@
#include <sys/socket.h>
#include <fcntl.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -116,7 +117,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);
@@ -128,7 +129,7 @@ job_free(struct job *job)
if (job->fd != -1)
close(job->fd);
- xfree(job);
+ free(job);
}
/* Job buffer error callback. */