mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
xfree is not particularly helpful, remove it. From Thomas Adam.
This commit is contained in:
5
job.c
5
job.c
@ -21,6 +21,7 @@
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <paths.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
@ -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. */
|
||||
|
Reference in New Issue
Block a user