mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 23:23:09 +00:00
* bucomm.c (make_tempname): Stop memory leak.
ICVS: ----------------------------------------------------------------------
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
(parse_stab_members): Likewise.
|
(parse_stab_members): Likewise.
|
||||||
(stab_demangle_qualified): Likewise.
|
(stab_demangle_qualified): Likewise.
|
||||||
* objdump.c (dump_reloc_set): Free malloced memory.
|
* objdump.c (dump_reloc_set): Free malloced memory.
|
||||||
|
* bucomm.c (make_tempname): Stop memory leak.
|
||||||
|
|
||||||
2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
|
2011-03-25 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
|
|||||||
@@ -511,7 +511,10 @@ make_tempname (char *filename)
|
|||||||
fd = open (tmpname, O_RDWR | O_CREAT | O_EXCL, 0600);
|
fd = open (tmpname, O_RDWR | O_CREAT | O_EXCL, 0600);
|
||||||
#endif
|
#endif
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
return NULL;
|
{
|
||||||
|
free (tmpname);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
close (fd);
|
close (fd);
|
||||||
return tmpname;
|
return tmpname;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user