From patchwork Sat Dec 30 12:42:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Liu X-Patchwork-Id: 7029 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.2.79.195 with SMTP id r64csp11583857jad; Sat, 30 Dec 2017 04:43:00 -0800 (PST) X-Google-Smtp-Source: ACJfBosccQi4t1YqhR0V0QjofWYkfhhePXRHZOlCKl1z0hRKVtMSceuU92mJooV+yEOw9wfbyKDD X-Received: by 10.28.87.78 with SMTP id l75mr27940845wmb.98.1514637780549; Sat, 30 Dec 2017 04:43:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514637780; cv=none; d=google.com; s=arc-20160816; b=olZnHqaHLLa1yqtsC1YJD04gdCBGG8pYmk+xkWAR54sIjuaFwYO8eCpCK+/73N9Fb3 hOTpdv7La1gdvaPXSaaHSJSVqeqhGYeHi4s+tF6Ax8iwywCoswhlsZ3uodOvHgViaDW6 Yc7FD/WpklmzT+2cRivSbtFoPxtoAA9QtbaHJ5FC+oZ2cRXP3EU85c/RZnY58fuO7VPY bQ/YLlRX/ycsFwm9TI3Zk/Jp8cRhED/D4oAScFL2dQrivypBtb9tIr02957KDiTIaDO6 M/clYsjTksDSQjTtzDK+Gk63+EfgBL6FcdmYrTmKf4X1GL6lreKh1ZyD8GB7zTK7Ktse OFiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:feedback-id:message-id:date:to:from :delivered-to:arc-authentication-results; bh=x68aQ8PJxvw49oJkdcxHUwWjdyFtEX8xrIhC8eZRDkI=; b=PwnMXCfz4Ltwm3HW6y6jyTkHd1V0x/WbZ/4JRB5FKgpRqept+T41SvjzSyzQ6L7EO5 LvA5EjFig5SnihTFkJwrhPjpK6KLhGql2NyMFqV7XyMXXK0uSGTYDxFVi6+KRqMVXv3R EeodC7Ax1Qm+iBv03XsMSclcT7HcMNCra5CqPk729+0bnAfPJxwAXki6Wo9Y4NinT4LG qTuaRUW25DHCdahjl0NbAoFuLDmX0Bo13aJIxro+rUnznPYj8Q7G9qOQQafH1+1vnhgo uuflXw36TpV9pKOtrEAzbFZmV0kNGzaRylK7PA5UnY5FI66elNKdV283p3/5EaOBff/O CtfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id x19si6288712wrd.486.2017.12.30.04.42.59; Sat, 30 Dec 2017 04:43:00 -0800 (PST) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A4DA7689C34; Sat, 30 Dec 2017 14:42:43 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbg278.qq.com (smtpbg278.qq.com [113.108.11.203]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7F77E689B64 for ; Sat, 30 Dec 2017 14:42:36 +0200 (EET) X-QQ-mid: bizesmtp14t1514637736tqrrk0uw Received: from localhost (unknown [123.115.194.237]) by esmtp4.qq.com (ESMTP) with id ; Sat, 30 Dec 2017 20:42:15 +0800 (CST) X-QQ-SSF: 01100000008000F0FKF0B00A0000000 X-QQ-FEAT: 9NFkmNiL4hcRkqTG5eYb/Ahp4Kh3koNUViesuEYRuvf5djzzVSwkZemvu50VQ HSMDERupR/IJNudvZtS8ThhD3XDhosswbKg03uLG3D+CDgti//IxhTuQlbsWjuaZJEqllEA sUdT5EqSggZGD+IYmHY+DrY1kU1bd8qWQ32klph36JFfDJZIdqCInzsiLVEBmS5hKxEAabL gX+wLlukAjpCVZ7qD5JmsLrX31U0PfygzvS1fmT9Vdm3PYg/SD8mHHr5S51XR4DFnFInuNV 45mQzy2Z/nV7OT7kSZhPy4aAk= X-QQ-GoodBg: 0 From: Steven Liu To: ffmpeg-devel@ffmpeg.org Date: Sat, 30 Dec 2017 20:42:13 +0800 Message-Id: <20171230124213.87933-1-lq@chinaffmpeg.org> X-Mailer: git-send-email 2.11.0 (Apple Git-81) X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:chinaffmpeg.org:qybgforeign:qybgforeign1 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH] avformat/hls: release mem resource to fix memleak X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Steven Liu MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" fix CID: 1426991 Signed-off-by: Steven Liu --- 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);