X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=binutils%2Frdcoff.c;h=7e585691eb6e13194fd14a303d1c464a3fabf8dd;hb=a1c110a3fe02f5cb8de18137f6615005288e849e;hp=67851366677b3f5ea4d5b7123e939af4bb165f77;hpb=f41e4712a7b7ac60f181e7dfc984ca35c222f0d7;p=external%2Fbinutils.git diff --git a/binutils/rdcoff.c b/binutils/rdcoff.c index 6785136..7e58569 100644 --- a/binutils/rdcoff.c +++ b/binutils/rdcoff.c @@ -1,5 +1,5 @@ /* stabs.c -- Parse COFF debugging information - Copyright (C) 1996-2014 Free Software Foundation, Inc. + Copyright (C) 1996-2019 Free Software Foundation, Inc. Written by Ian Lance Taylor . This file is part of GNU Binutils. @@ -409,6 +409,7 @@ parse_coff_struct_type (bfd *abfd, struct coff_symbols *symbols, { non_fatal (_("bfd_coff_get_syment failed: %s"), bfd_errmsg (bfd_get_error ())); + free (fields); return DEBUG_TYPE_NULL; } @@ -425,6 +426,7 @@ parse_coff_struct_type (bfd *abfd, struct coff_symbols *symbols, { non_fatal (_("bfd_coff_get_auxent failed: %s"), bfd_errmsg (bfd_get_error ())); + free (fields); return DEBUG_TYPE_NULL; } psubaux = &auxent; @@ -514,6 +516,8 @@ parse_coff_enum_type (bfd *abfd, struct coff_symbols *symbols, { non_fatal (_("bfd_coff_get_syment failed: %s"), bfd_errmsg (bfd_get_error ())); + free (names); + free (vals); return DEBUG_TYPE_NULL; }