Re: [Bug binutils/868] New: bfd leaks memory in several places

2005-05-05 Thread Nick Clifton
Hi John, bfd has several memory leaks. I'm fixing the ones in dwarf2.c, but a simple grep for 'bfd_realloc' shows several obvious leaks on failure: ./bfd/bfdio.c:bim->buffer = bfd_realloc (bim->buffer, newsize); [etc] The least intrusive way to resolve most of these would be to provide a n

[Bug binutils/868] New: bfd leaks memory in several places

2005-04-23 Thread levon at movementarian dot org
bfd has several memory leaks. I'm fixing the ones in dwarf2.c, but a simple grep for 'bfd_realloc' shows several obvious leaks on failure: ./bfd/bfdio.c:bim->buffer = bfd_realloc (bim->buffer, newsize); ./bfd/bfdio.c:bim->buffer = bfd_realloc (bim->buffer, newsize); ./bfd/bfdwi