avcodec/escape124: use av_freep(), do not leave stale pointers in memory