fix CID: 1426931
Signed-off-by: Steven Liu <[email protected]>
---
libavformat/hlsenc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 836e290eea..fbc6554b97 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2539,6 +2539,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);
}
--
2.15.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".