mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avformat/hlsenc: fix memleak in hls_write_trailer
fix CID: 1426931 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
This commit is contained in:
parent
f0c97d613e
commit
4ba82ecc12
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user