* format.c (bfd_check_format_matches): Free matching_vector when
not returning matching target strings.
+2019-12-20 Alan Modra <amodra@gmail.com>
+
+ * format.c (bfd_check_format_matches): Free matching_vector when
+ not returning matching target strings.
+
2019-12-20 Alan Modra <amodra@gmail.com>
* coff-alpha.c (alpha_ecoff_read_ar_hdr): Free ar_hdr on error return.
*(const char **) &matching_vector[match_count] = name;
}
}
+ else if (matching_vector)
+ free (matching_vector);
return FALSE;
}