ffmpeg | branch: master | Steven Liu <[email protected]> | Wed Aug 21 10:24:12 2019 +0800| [4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61] | committer: Steven Liu
avformat/hlsenc: fix memleak in hls_write_trailer fix CID: 1426931 Signed-off-by: Steven Liu <[email protected]> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4ba82ecc12b7a587e0c2e0885599c3e8d79aaf61 --- libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 18173cdce1..3c873e5357 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2538,6 +2538,7 @@ static int hls_write_trailer(struct AVFormatContext *s) filename = av_asprintf("%s", vs->avf->url); } if (!filename) { + av_free(old_filename); return AVERROR(ENOMEM); } _______________________________________________ ffmpeg-cvslog mailing list [email protected] https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
