From patchwork Wed Jun 19 08:04:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhangxianting X-Patchwork-Id: 92419 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 045173884579 for ; Wed, 19 Jun 2024 08:05:56 +0000 (GMT) X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by sourceware.org (Postfix) with ESMTPS id 50D853882AEC for ; Wed, 19 Jun 2024 08:05:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 50D853882AEC Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uniontech.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=uniontech.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 50D853882AEC Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.206.16.166 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718784316; cv=none; b=a593ypis88zbbY0LHsNUGvbd83vCxmxkWezUDU4k4mMKz7QFJSq08gtctGemtwyxVWnE06icT1c2MGzfQC1EGE/n5IBxqUnqqwSGHF2Qtbi9WtU1JbBfs5HSgAfI6PxWkgBpxSgHHbgVQ8PdLK6XEaLMbLJHsGlyIHQx8n9ahsA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718784316; c=relaxed/simple; bh=juQkcUny4PFOUd8j5yfW6qANE8VchBh9XQCfjC0H7Po=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=LS0oC6fdZFGLhScfgjDY+jy4K5WIvqwn86Ql+kRqSEnNHp6KN8Tp5Mohky+iPNtD0fyk9vzO80dwBpQ0piphyFSigl/a5ZFTUjSfaN7WwyLvVNnAcp4IFAaI+OEcK21gssoc+hcVa+8IhQ6G1HNe/p+R+annM3eug+1hxQ0ARNA= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp88t1718784306tqfbf7w1 X-QQ-Originating-IP: HwFDhZRBHE7deRDTbIy9e98x2U0GRypW2kcw3cbcfJo= Received: from localhost.localdomain ( [123.124.208.226]) by bizesmtp.qq.com (ESMTP) with id ; Wed, 19 Jun 2024 16:05:04 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 11467014718470229916 From: zhangxianting To: jbeulich@suse.com Cc: binutils@sourceware.org, zhangxianting Subject: [PATCH] bfin: free the allocated memory Date: Wed, 19 Jun 2024 16:04:53 +0800 Message-Id: <20240619080454.22732-1-zhangxianting@uniontech.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybglogicsvrgz:qybglogicsvrgz6a-0 X-Spam-Status: No, score=-13.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: binutils-bounces+patchwork=sourceware.org@sourceware.org --- gas/config/tc-bfin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c index cbf09037e48..001f90c045c 100644 --- a/gas/config/tc-bfin.c +++ b/gas/config/tc-bfin.c @@ -1919,6 +1919,8 @@ bfin_loop_beginend (Expr_Node *exp, int begin) Adjust label address. */ if (!begin) *symbol_X_add_number (linelabel) -= last_insn_size; + + free (label_name); } bool