Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ds4_agent.c
Original file line number Diff line number Diff line change
Expand Up @@ -6690,6 +6690,11 @@ static void agent_bash_job_free(agent_bash_job *job) {
}
if (job->pipe_fd >= 0) close(job->pipe_fd);
if (job->tmp_fd >= 0) close(job->tmp_fd);
/* Remove the mkstemp() output file created in agent_bash_start(); only
* that function's error paths unlinked it, so a job that started
* successfully otherwise leaves /tmp/ds4_agent_output_* behind for the
* lifetime of the process (unbounded accumulation across many jobs). */
if (job->path[0]) unlink(job->path);
free(job->cmd);
free(job);
}
Expand Down