X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Felfcomm.c;h=558afa7d056c29304a2bf2c4061ffad5341a9841;hb=b3db6d07be467fe86f5b4185a8fc7bec49380c1f;hp=5ec4690e13234b6eeed7ac45e2d32672cb9a21d0;hpb=81a65eb338cf7b40ef76b1cdb150eefd8495e282;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/elfcomm.c b/binutils/elfcomm.c index 5ec4690e13..558afa7d05 100644 --- a/binutils/elfcomm.c +++ b/binutils/elfcomm.c @@ -744,14 +744,10 @@ setup_nested_archive (struct archive_info *nested_arch, void release_archive (struct archive_info * arch) { - if (arch->file_name != NULL) - free (arch->file_name); - if (arch->index_array != NULL) - free (arch->index_array); - if (arch->sym_table != NULL) - free (arch->sym_table); - if (arch->longnames != NULL) - free (arch->longnames); + free (arch->file_name); + free (arch->index_array); + free (arch->sym_table); + free (arch->longnames); } /* Get the name of an archive member from the current archive header.