From d137d129e75247575530d8a8310778b70f2c13ea Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 29 Dec 2015 05:48:24 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/satd-add.c | 1 + src/satd-list.c | 1 + src/satd-rm.c | 1 + src/satd-run.c | 1 + 4 files changed, 4 insertions(+) diff --git a/src/satd-add.c b/src/satd-add.c index 0fec460..5a5e004 100644 --- a/src/satd-add.c +++ b/src/satd-add.c @@ -87,6 +87,7 @@ done: /* Cleanup. */ shutdown(SOCK_FILENO, SHUT_WR); close(SOCK_FILENO); + close(STATE_FILENO); free(message); free(job); return rc; diff --git a/src/satd-list.c b/src/satd-list.c index ee11c3a..29175c9 100644 --- a/src/satd-list.c +++ b/src/satd-list.c @@ -267,6 +267,7 @@ done: /* Cleanup. */ shutdown(SOCK_FILENO, SHUT_WR); close(SOCK_FILENO); + close(STATE_FILENO); for (job = jobs; *job; job++) free(*job); free(jobs); diff --git a/src/satd-rm.c b/src/satd-rm.c index 010f795..f245a1f 100644 --- a/src/satd-rm.c +++ b/src/satd-rm.c @@ -58,6 +58,7 @@ done: /* Cleanup. */ shutdown(SOCK_FILENO, SHUT_WR); close(SOCK_FILENO); + close(STATE_FILENO); free(msg_argv); free(message); return rc; diff --git a/src/satd-run.c b/src/satd-run.c index 1af4834..1b92558 100644 --- a/src/satd-run.c +++ b/src/satd-run.c @@ -66,6 +66,7 @@ done: /* Cleanup. */ shutdown(SOCK_FILENO, SHUT_WR); close(SOCK_FILENO); + close(STATE_FILENO); free(msg_argv); free(message); return rc; -- cgit v1.2.3-70-g09d2