avcodec/exr: use av_freep() for saftey

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>