aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/satd-add.c1
-rw-r--r--src/satd-list.c1
-rw-r--r--src/satd-rm.c1
-rw-r--r--src/satd-run.c1
4 files changed, 4 insertions, 0 deletions
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;