diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp index 8463d0ede..d46d5e354 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);