GNOME Bugzilla – Bug 788500
[libav] [Memory Leak] Memory not freed in failure case in function parse_vtrk
Last modified: 2017-10-04 09:52:44 UTC
Possible memory leak is as below:- File: 4xm.c : Line No. 117 Function: static int parse_vtrk(AVFormatContext *s, FourxmDemuxContext *fourxm, uint8_t *buf, int size, int left) ... st = avformat_new_stream(s, NULL); ... st not freed in case of failure i.e. return AVERROR(ENOMEM); Solution:- av_free(st);
Thanks for the bug report, but this is something that should be submitted to the ffmpeg/libav projects. We don't patch our internal copy of ffmpeg.