Fix a double free when re-allocating a buffer to size 0.
authorNick Clifton <nickc@redhat.com>
Fri, 30 Apr 2021 13:04:08 +0000 (14:04 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 30 Apr 2021 13:04:08 +0000 (14:04 +0100)
commit6cb40a679b23b07b9fe0c43147d300b630deec70
tree056cbd4d6aa41578d537ccd2ee7b7a82b3d4ba6b
parentbfbfa6e7f481aa120aa24f8544c45c685aef3971
Fix a double free when re-allocating a buffer to size 0.

PR 27797
* libbfd.c (bfd_realloc_or_free): Do not free a pointer than has
been realloc'ed to size 0.
bfd/ChangeLog
bfd/libbfd.c