decoderbase: fix new[]/free mismatch