diff options
author | Iliyan Malchev <malchev@google.com> | 2011-09-23 09:37:27 -0700 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-09-23 09:37:27 -0700 |
commit | 667d012c40efe5504b169e2367fa89743bd55da6 (patch) | |
tree | 545fc13a839c7c53e51171ea6989733674fd06b3 /libtiutils | |
parent | 6e2a15f108fae020da68296e1440bdf887753f12 (diff) | |
download | hardware_ti_omap4-667d012c40efe5504b169e2367fa89743bd55da6.zip hardware_ti_omap4-667d012c40efe5504b169e2367fa89743bd55da6.tar.gz hardware_ti_omap4-667d012c40efe5504b169e2367fa89743bd55da6.tar.bz2 |
libtiutils: fix an fd leak I introduced
Change-Id: Ib956613f334c31b20a402bc618cd72a04603d828
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'libtiutils')
-rwxr-xr-x | libtiutils/MessageQueue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libtiutils/MessageQueue.cpp b/libtiutils/MessageQueue.cpp index 35b4873..28bb0e3 100755 --- a/libtiutils/MessageQueue.cpp +++ b/libtiutils/MessageQueue.cpp @@ -74,12 +74,12 @@ MessageQueue::~MessageQueue() { LOG_FUNCTION_NAME; - if(this->fd_read < 0) + if(this->fd_read >= 0) { close(this->fd_read); } - if(this->fd_write < 0) + if(this->fd_write >= 0) { close(this->fd_write); } |