avcodec/elsdec: Fix memleaks