mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2024-11-27 21:54:18 +01:00
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
This commit is contained in:
parent
30fc9ce1c0
commit
fe60ba9789
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user