mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-28 03:24:23 +01:00
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:
parent
05f02b46ed
commit
fb7dbb4c28
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user