Message ID | 20200515124245.18040-3-email@uajain.com |
---|---|
State | Accepted |
Headers | show |
Series |
|
Related | show |
diff --git a/test/log/log_process.cpp b/test/log/log_process.cpp index 2df4aa4..88baa27 100644 --- a/test/log/log_process.cpp +++ b/test/log/log_process.cpp @@ -106,6 +106,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);