summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/log/log_process.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp
index 8463d0ed..d46d5e35 100644
--- a/test/log/log_process.cpp
+++ b/test/log/log_process.cpp
@@ -107,6 +107,7 @@ protected:
memset(buf, 0, sizeof(buf));
if (read(fd, buf, sizeof(buf)) < 0) {
cerr << "Failed to read tmp log file" << endl;
+ close(fd);
return TestFail;
}
close(fd);