Fix file descriptor leak in GetThreadInfoByIndex

Patch by Chris Dearman <chris@mips.com>
Review URL: http://breakpad.appspot.com/376001

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@954 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
benchan@chromium.org 2012-04-18 15:33:54 +00:00
parent 05f02b46ed
commit fb7dbb4c28

View File

@ -177,6 +177,7 @@ bool LinuxPtraceDumper::GetThreadInfoByIndex(size_t index, ThreadInfo* info) {
line_reader->PopLine(line_len); line_reader->PopLine(line_len);
} }
sys_close(fd);
if (info->ppid == -1 || info->tgid == -1) if (info->ppid == -1 || info->tgid == -1)
return false; return false;