This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] readelf.c (process_version_sections): Free symbols.


Michael Snyder <msnyder@vmware.com> writes:
> OK?

Yes, thanks.

> 2011-03-07  Michael Snyder  <msnyder@vmware.com>
>
> 	* readelf.c (process_version_sections): Free symbols.
>
> Index: readelf.c
> ===================================================================
> RCS file: /cvs/src/src/binutils/readelf.c,v
> retrieving revision 1.534
> diff -u -p -r1.534 readelf.c
> --- readelf.c	1 Mar 2011 00:02:32 -0000	1.534
> +++ readelf.c	8 Mar 2011 00:51:29 -0000
> @@ -8053,7 +8053,10 @@ process_version_sections (FILE * file)
>                                          string_sec->sh_size,
>                                          _("version string table"));
>  	    if (!strtab)
> -	      break;
> +	      {
> +		free (symbols);
> +		break;
> +	      }
>  
>  	    printf (_("\nVersion symbols section '%s' contains %d entries:\n"),
>  		    SECTION_NAME (section), total);
> @@ -8073,6 +8076,7 @@ process_version_sections (FILE * file)
>  	    if (!edata)
>  	      {
>  		free (strtab);
> +		free (symbols);
>  		break;
>  	      }
>  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]