diff options
Diffstat (limited to 'daemon/debug.c')
-rw-r--r-- | daemon/debug.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/debug.c b/daemon/debug.c index 522012f2..4036af68 100644 --- a/daemon/debug.c +++ b/daemon/debug.c @@ -473,6 +473,7 @@ debug_core_pattern (const char *subcmd, int argc, char *const *const argv) } if (write (fd, pattern, pattern_len) < (ssize_t) pattern_len) { reply_with_perror ("write: " CORE_PATTERN); + close (fd); return NULL; } if (close (fd) == -1) { |