From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1F63848699 for ; Thu, 14 Dec 2023 02:50:07 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 1123D68D1E8; Thu, 14 Dec 2023 04:49:47 +0200 (EET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 3160168D197 for ; Thu, 14 Dec 2023 04:49:40 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702522186; x=1734058186; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=0wOP4pQO5JQlrqDmAqLXWB8y26ltEa/+pgVQIhKAQnk=; b=P4Z47F+O4C0wG1+KztfHDM2aIEK38PPab1QdoKNSjqBXritVFTNeyv2x jeeq/s1qznyThP8A7Wi7+rWShyMITe5iHgyj0ZvaPmY0b2iZDGOPRcI6r qXIsQFpN/s6dFlsmMqvghq5jBa3MIBTvqe71NtlpuPe5LZ/Wu4mw2UXMq 89Wb+w3GLv5NSyEPGEn5QB6ArzOsvCcLiu+9LMOECcERdJRl+FEzYkLO0 UevNfp8F92B0TWpZ6jTt5uteyExzrRbRgJWxSbhPyTp19jJKPOXole4pF byaYdsXGWszyXXI5b/HNNipjsRDQaAwT0kBZKYoNwho7wj52S3Mi5Io6M w==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="16610005" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="16610005" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 18:49:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="947403475" X-IronPort-AV: E=Sophos;i="6.04,274,1695711600"; d="scan'208";a="947403475" Received: from wenbin-z390-aorus-ultra.sh.intel.com ([10.239.156.43]) by orsmga005.jf.intel.com with ESMTP; 13 Dec 2023 18:49:31 -0800 From: wenbin.chen-at-intel.com@ffmpeg.org To: ffmpeg-devel@ffmpeg.org Date: Thu, 14 Dec 2023 10:49:28 +0800 Message-Id: <20231214024928.230112-4-wenbin.chen@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231214024928.230112-1-wenbin.chen@intel.com> References: <20231214024928.230112-1-wenbin.chen@intel.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 4/4] libavfilter/vf_dnn_detect: Set used pointer to NULL X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: From: Wenbin Chen Set used pointer to NULL in case it leaks the storage. Signed-off-by: Wenbin Chen --- libavfilter/vf_dnn_detect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_dnn_detect.c b/libavfilter/vf_dnn_detect.c index 5668b8b017..3464af86c8 100644 --- a/libavfilter/vf_dnn_detect.c +++ b/libavfilter/vf_dnn_detect.c @@ -223,6 +223,7 @@ static int dnn_detect_parse_yolo_output(AVFrame *frame, DNNData *output, int out av_freep(&bbox); return AVERROR(ENOMEM); } + bbox = NULL; } } return 0; -- 2.34.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".