[FFmpeg-devel] [PATCH] libavformat/mov.c: Free aes_decrypt to avoid leaking memory

Moritz Barsnick barsnick at gmx.net
Tue Mar 31 15:23:37 EEST 2020


On Mon, Mar 30, 2020 at 15:27:46 -0700, John Rummell wrote:
> +    if (c->aes_decrypt)
> +        av_free(c->aes_decrypt);

av_free() already does the NULL pointer check for you.

Moritz


More information about the ffmpeg-devel mailing list