Signed-off-by: Steven Liu <[email protected]>
---
libavformat/hlsenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index bcc67b1159..307aba2efa 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -2447,6 +2447,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket
*pkt)
av_log(s, hls->ignore_io_errors ? AV_LOG_WARNING :
AV_LOG_ERROR,
"Failed to open file '%s'\n", filename);
av_dict_free(&options);
+ av_freep(&filename);
return hls->ignore_io_errors ? 0 : ret;
}
if (hls->segment_type == SEGMENT_TYPE_FMP4) {
@@ -2454,6 +2455,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket
*pkt)
}
ret = flush_dynbuf(vs, &range_length);
if (ret < 0) {
+ av_freep(&filename);
av_dict_free(&options);
return ret;
}
--
2.25.0
_______________________________________________
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".