diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-04-05 19:41:33 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-04-05 19:41:33 +0000 |
commit | fe60ba97891bd1541e57afc8f78798edb5ff6648 (patch) | |
tree | c78c755f134185ffb54bab086a92cc036305cabf /src | |
parent | Replace GB_WSU_SAFE_SWPRINTF_TERMINATE with inline code (#145 followup). (diff) | |
download | breakpad-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')
-rw-r--r-- | src/common/mac/dump_syms.mm | 1 |
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]; |