Fixed a temp file leak in dump_syms

2 views
Skip to first unread message

Titoz

unread,
Apr 4, 2007, 4:44:50 PM4/4/07
to google-breakpad-discuss
dump_syms leaks a file in /tmp when used.
This is fixed with the following:

Index: dump_syms.mm
===================================================================
--- dump_syms.mm (revision 140)
+++ dump_syms.mm (working copy)
@@ -166,6 +166,7 @@
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];


By the way, is this the right place to post such things?
Thanks,
Thomas

Reply all
Reply to author
Forward
0 new messages