commit | ea0e470f6840d2aa26fa9dcf76fdcd4e6863c4ac | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Mon Oct 05 12:22:59 2020 -0700 |
committer | Patrick Venture <venture@google.com> | Mon Oct 05 21:15:40 2020 +0000 |
tree | 0a13ce7a145cc8728e15f8b02afa899b2f9676bd | |
parent | 48474bc1d98067d15074002fc32929f488155fd6 [diff] [blame] |
tools: io: add ppcMemFd cleanup The destructor may try to double-close because the ppcMemFd was not being set to -1. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I3423ae874d551b39f3deb761c5572078b07a0349
diff --git a/tools/io.hpp b/tools/io.hpp index 1476c5c..b3b2c79 100644 --- a/tools/io.hpp +++ b/tools/io.hpp
@@ -91,6 +91,8 @@ const void* const source) override; private: + void close(); + int ppcMemFd = -1; const std::string ppcMemPath; const internal::Sys* sys;