ActiveAE: Use av_freep accordingly to the ffmpeg documentation