avcodec_encode_audio2: fix memleak on last padded frame