From fe60ba97891bd1541e57afc8f78798edb5ff6648 Mon Sep 17 00:00:00 2001 From: mmentovai Date: Thu, 5 Apr 2007 19:41:33 +0000 Subject: [PATCH] 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 --- src/common/mac/dump_syms.mm | 1 + 1 file changed, 1 insertion(+) 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];