From 99734c68415b5525542859b461d51e24091ec853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 26 Apr 2008 19:35:00 +0000 Subject: [PATCH] Missing close() calls just for the sake of it. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25191 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/tools/fs_shell/fs_shell_command_unix.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/fs_shell/fs_shell_command_unix.cpp b/src/tools/fs_shell/fs_shell_command_unix.cpp index 862cecdbe4..8ba60bfc67 100644 --- a/src/tools/fs_shell/fs_shell_command_unix.cpp +++ b/src/tools/fs_shell/fs_shell_command_unix.cpp @@ -88,12 +88,14 @@ send_external_command(const char *command, int *result) if (bytesRead == 0) { fprintf(stderr, "Error: Unexpected end of fs_shell reply. Was " "still expecting %d bytes\n", toRead); + close(fd); return false; } replyBuffer += bytesRead; toRead -= bytesRead; } + close(fd); *result = reply.error; return true;