avcodec/iff: Fix mask_buf / mask_palbuf leak