From patchwork Thu Sep 13 07:49:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhao Zhili X-Patchwork-Id: 10314 Delivered-To: ffmpegpatchwork@gmail.com Received: by 2002:a02:12c4:0:0:0:0:0 with SMTP id 65-v6csp292582jap; Thu, 13 Sep 2018 00:50:34 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQRVXnmQdNbY2U8ARCSZpSD98XTQ8kTIkUFjcx0y6qnNY9Zfcz5bRGu3oOf6/J/NA910eR X-Received: by 2002:a1c:8587:: with SMTP id h129-v6mr4287282wmd.105.1536825034636; Thu, 13 Sep 2018 00:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536825034; cv=none; d=google.com; s=arc-20160816; b=vTSsovDm38Iv6au4tJZC+BwzQyFiCaRhpEJ+7+FBKpIiiZihE/zn6M6I6HfvU3f9XJ cSJYru2i04GWsy0FJ62JWr7vtvNJPm1wjX+gt12IIDKe9jARND99gN2LQqqSY0MA1BfC aVm+tHd71g5nx+mrEFSUROjh/N8prVSL/5SOpyj/lTDEv9c542QsNe2lf3Ck1GrvV+ml /v4OMQevTmVmwNg4NjsBuvd0p3jUXLOkBZXNG4O1ZV5vgmtnSBUaPYxLIS2W4b7fBuKg CSNhHFb2RNNt71yI+SYtSvpLdYZDgU3QE+XrhGavLNdGMUVxK5C27oy+GSOm5vBOqGxM skoQ== 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:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=mRGz3/WPWxzMIWj6SN0oLIKb+0pdpzVBNhinySHllCo=; b=iZzZ/y+PbRO0MD9S3ZueMNk8Cl+c7gjkkQtmo8qlKIE36najIMq+Cz90490tVAb5Ww 5LwiZHoDlldsADwxvxrsYBKpO2dr4pRk2RK57Vp+zPUO+Bi3uM9RWuDp/RYTYnocWrfW gZWxi94Dg8kovFbK2M85OYZMxkiLJJ+0m7LnHxv7JccfARQt9qO6/6HbQ7+TmxPa2odG 8CbcIkk35jl0clgDPCU/m40DUrKFkRBDpc2Vflicg+6tdr271MPaSYB9oYPZM7qr5RUD I3i2eFyY/O6AciyR0UekjRJl9nPAxYWIHCKFF0+CroU4EiFtxk3ilXBkFRtMQrTAR/lN T6QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=hqcUNLbC; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id y13-v6si3002587wmd.143.2018.09.13.00.50.34; Thu, 13 Sep 2018 00:50:34 -0700 (PDT) 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; dkim=neutral (body hash did not verify) header.i=@foxmail.com header.s=s201512 header.b=hqcUNLbC; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=foxmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 6E2E568A56F; Thu, 13 Sep 2018 10:50:10 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from smtpbgsg2.qq.com (smtpbgsg2.qq.com [54.254.200.128]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id D543D689E9B for ; Thu, 13 Sep 2018 10:50:03 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1536825009; bh=KfCyriQivlmwQExIhxu+Gm17Xd52J7iBLoqB8Er9cd0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=hqcUNLbCjsH+29ulJZzKXsWA0BYZsXmjDp+KTCg5MaQ5NUMPSjKGSHcZpGXivWiZS h0837O7Y702WuOT8ILP1z64GMWM7NmX51nPnQcdbWP+AraAo53dqG8PK8QdCzt6z7b WegsmbVAYCrNrS6xX9NOOpbnv86Fgrz2zgy9rhwg= X-QQ-mid: esmtp3t1536825008tcazf46me Received: from localhost.localdomain (unknown [119.145.5.45]) by esmtp4.qq.com (ESMTP) with id ; Thu, 13 Sep 2018 15:50:04 +0800 (CST) X-QQ-SSF: A1000000000000F0FF1003000000001 X-QQ-FEAT: 8rUnKqR4a/XaVJreClvTARq2Ti+Vp6yGQQMLKERT4Mpd9JplaiirkhEmPWrI6 g4DoAM1WLDINcA/BlcmUCQsJMwiOj2J1dJ79OoFHjesBazBkGojKJhuc1uxvqoKcXxu0soN Vuzuym6FP/lxZE+RyvVdeg6G/g0XRqgIlt8d2Bs7fylYzLikv4ctoxrHaJTPhSQ6ZIJu/Po jjEBcHIo+LM44vmLueRLRxdRJYTWw1XZ9VS1fanop5XTXK29GUfuqBRM3CVZJ3m7EYGY4Ac 5rev0GfYlo/cJm7Ps8fheg8q4= X-QQ-GoodBg: 0 From: Zhao Zhili To: ffmpeg-devel@ffmpeg.org Date: Thu, 13 Sep 2018 15:49:51 +0800 Message-Id: <20180913074952.2873-2-quinkblack@foxmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180913074952.2873-1-quinkblack@foxmail.com> References: <20180913074952.2873-1-quinkblack@foxmail.com> X-QQ-SENDSIZE: 520 Feedback-ID: esmtp:foxmail.com:bgforeign:bgforeign2 X-QQ-Bgrelay: 1 Subject: [FFmpeg-devel] [PATCH 2/3] avfilter/dnn_backend_native: fix invalid free 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: Zhao Zhili MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" --- libavfilter/dnn_backend_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/dnn_backend_native.c b/libavfilter/dnn_backend_native.c index baefea7..7ed155d 100644 --- a/libavfilter/dnn_backend_native.c +++ b/libavfilter/dnn_backend_native.c @@ -489,7 +489,7 @@ void ff_dnn_free_model_native(DNNModel **model) } av_freep(&network->layers[layer].params); } - av_freep(network); + av_freep(&network); av_freep(model); } }