[PATCH] Use bfd_alloc for compressed section contents

Alan Modra amodra@gmail.com
Fri Apr 10 07:09:00 GMT 2015


On Thu, Apr 09, 2015 at 07:38:33PM -0700, H.J. Lu wrote:
> 	* compress.c (bfd_compress_section_contents): Replace bfd_malloc
> 	and free with bfd_alloc and bfd_release on compressed buffer.
> 	Release buffer if compressed section isn't smaller.

OK.

> +	  /* NOTE: There is a small memeory leak here since

memory

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list