Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.
The attached patch contains (untested) memory and fd leak fixes found by cppcheck.
I see some of these (at least the one for metadata_iterators.c) is already reported (#2946736)
Memory and fd leak fixes
I verified that all fixes in this patch have been applied (sometimes in different form) to the flac source repository, see https://git.xiph.org/?p=flac.git -- so hopefully they will be part of the next release.