bfd_check_format memory leak
[deliverable/binutils-gdb.git] / bfd / format.c
index 1d1363d18403cef706ec1a81f164c5b6521dd20f..17b48556a9a10422fd704fe8699eb44907c2f33d 100644 (file)
@@ -513,6 +513,8 @@ bfd_check_format_matches (bfd *abfd, bfd_format format, char ***matching)
          *(const char **) &matching_vector[match_count] = name;
        }
     }
+  else if (matching_vector)
+    free (matching_vector);
   return FALSE;
 }
 
This page took 0.024007 seconds and 4 git commands to generate.