coff-alpha memory leak
[deliverable/binutils-gdb.git] / bfd / coff-alpha.c
index d36921bbfe6784523bbbd533ccfdbfa93fe9d701..fe7fcb143de71a0885e0be171b4a5f44bff19ce2 100644 (file)
@@ -2026,7 +2026,10 @@ alpha_ecoff_read_ar_hdr (bfd *abfd)
       if (bfd_seek (abfd, (file_ptr) FILHSZ, SEEK_CUR) != 0
          || bfd_bread (ab, (bfd_size_type) 8, abfd) != 8
          || bfd_seek (abfd, (file_ptr) (- (FILHSZ + 8)), SEEK_CUR) != 0)
-       return NULL;
+       {
+         free (ret);
+         return NULL;
+       }
 
       ret->parsed_size = H_GET_64 (abfd, ab);
     }
This page took 0.023698 seconds and 4 git commands to generate.