aboutsummaryrefslogtreecommitdiff
path: root/src/common/mac
diff options
context:
space:
mode:
authormmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-05 19:41:33 +0000
committermmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-04-05 19:41:33 +0000
commitfe60ba97891bd1541e57afc8f78798edb5ff6648 (patch)
treec78c755f134185ffb54bab086a92cc036305cabf /src/common/mac
parentReplace GB_WSU_SAFE_SWPRINTF_TERMINATE with inline code (#145 followup). (diff)
downloadbreakpad-fe60ba97891bd1541e57afc8f78798edb5ff6648.tar.xz
Fix temp file leak. Patch by Thomas Thiriez. r=me
http://groups.google.com/group/google-breakpad-discuss/browse_thread/thread/42293e72537b554 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@141 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common/mac')
-rw-r--r--src/common/mac/dump_syms.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/mac/dump_syms.mm b/src/common/mac/dump_syms.mm
index 13368292..e2afc724 100644
--- a/src/common/mac/dump_syms.mm
+++ b/src/common/mac/dump_syms.mm
@@ -166,6 +166,7 @@ static BOOL StringTailMatches(NSString *str, NSString *tail) {
char buffer[PATH_MAX];
snprintf(buffer, sizeof(buffer), "/tmp/dump_syms_filtXXXXX");
int fd = mkstemp(buffer);
+ unlink(buffer);
char nl = '\n';
for (unsigned int i = 0; i < count; ++i) {
const char *symbol = [[symbols objectAtIndex:i] UTF8String];