diff options
author | Nick Clifton <nickc@redhat.com> | 2011-03-30 15:37:48 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-03-30 15:37:48 +0000 |
commit | 2842702f2f35e24240a80e6683bdff1c44a0e741 (patch) | |
tree | 700b1f5f868b8d40f7b9845b59ca1d90990f9501 /binutils/readelf.c | |
parent | 3a294fa7262f1044a778ad87cd7dc339945d46d8 (diff) | |
download | gdb-2842702f2f35e24240a80e6683bdff1c44a0e741.zip gdb-2842702f2f35e24240a80e6683bdff1c44a0e741.tar.gz gdb-2842702f2f35e24240a80e6683bdff1c44a0e741.tar.bz2 |
* readelf.c (process_gnu_liblist): Stop memory leak.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 6a4a6e8..9b4f237 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -11846,6 +11846,7 @@ process_gnu_liblist (FILE * file) || section->sh_entsize != sizeof (Elf32_External_Lib)) { free (elib); + free (strtab); break; } @@ -11887,6 +11888,7 @@ process_gnu_liblist (FILE * file) } free (elib); + free (strtab); } } |