[FFmpeg-devel] [PATCH] avformat/hls: release mem resource to fix memleak

Steven Liu lq at chinaffmpeg.org
Sat Dec 30 14:42:13 EET 2017


fix CID: 1426991

Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 libavformat/hls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index dccc7c7dd2..9918d1af74 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1475,6 +1475,7 @@ reload:
         uint8_t *http_version_opt = NULL;
         av_opt_get(v->input, "http_version", AV_OPT_SEARCH_CHILDREN, &http_version_opt);
         c->http_multiple = http_version_opt && strncmp((const char *)http_version_opt, "1.1", 3) == 0;
+        av_free(http_version_opt);
     }
 
     seg = next_segment(v);
-- 
2.11.0 (Apple Git-81)





More information about the ffmpeg-devel mailing list