fix CID: 1426991

Signed-off-by: Steven Liu <l...@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)



_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to