From fb7dbb4c28d93eb4e4662b84102ade294593998e Mon Sep 17 00:00:00 2001 From: "benchan@chromium.org" Date: Wed, 18 Apr 2012 15:33:54 +0000 Subject: Fix file descriptor leak in GetThreadInfoByIndex Patch by Chris Dearman Review URL: http://breakpad.appspot.com/376001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@954 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/minidump_writer/linux_ptrace_dumper.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client') 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; -- cgit v1.2.1