aboutsummaryrefslogtreecommitdiff
path: root/src/client/linux/minidump_writer
diff options
context:
space:
mode:
authorbenchan@chromium.org <benchan@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-04-18 15:33:54 +0000
committerbenchan@chromium.org <benchan@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-04-18 15:33:54 +0000
commitfb7dbb4c28d93eb4e4662b84102ade294593998e (patch)
treeef5e7a5fd1120e2f49f348bcae4efc8d5f8ee6e5 /src/client/linux/minidump_writer
parentSet limit on the number of custom client info entries that can be sent with a... (diff)
downloadbreakpad-fb7dbb4c28d93eb4e4662b84102ade294593998e.tar.xz
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
Diffstat (limited to 'src/client/linux/minidump_writer')
-rw-r--r--src/client/linux/minidump_writer/linux_ptrace_dumper.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/linux/minidump_writer/linux_ptrace_dumper.cc b/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
index ea58dd11..864bbad3 100644
--- a/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
+++ b/src/client/linux/minidump_writer/linux_ptrace_dumper.cc
@@ -177,6 +177,7 @@ bool LinuxPtraceDumper::GetThreadInfoByIndex(size_t index, ThreadInfo* info) {
line_reader->PopLine(line_len);
}
+ sys_close(fd);
if (info->ppid == -1 || info->tgid == -1)
return false;