avcodec/exr: Fix memleaks in decode_header()