Message ID | 20240830121220.865234-1-claudiu.zissulescu-ianculescu@oracle.com |
---|---|
State | New |
Headers |
Return-Path: <libabigail-bounces~patchwork=sourceware.org@sourceware.org> 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 C08F9385E011 for <patchwork@sourceware.org>; Fri, 30 Aug 2024 12:12:45 +0000 (GMT) X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by sourceware.org (Postfix) with ESMTPS id 02EFF385DDD8 for <libabigail@sourceware.org>; Fri, 30 Aug 2024 12:12:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 02EFF385DDD8 Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=oracle.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 02EFF385DDD8 Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=205.220.177.32 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725019956; cv=pass; b=Syl2bklvbd2J3jr4tFVIz0A+cDm89LP2C6tETMX44PSdjUf948sYy3c0RxRT9doVxrlMAlYcluvD2uolW5CKeGSLHzjG64+hQgYdyoU7rZE3rqAA/l8Wg83iepX13cO+qXfR+0jjVBFfy7wmnB7P1sZJOzjKIArIm2GSC6m/Wp8= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1725019956; c=relaxed/simple; bh=WU2EXDeVIk5k1EItm9qkMaRqF9emLBZecXXBewVxJNk=; h=DKIM-Signature:DKIM-Signature:From:To:Subject:Date:Message-ID: MIME-Version; b=MBLBz5ILhjxd5MFM0qJMohONhjjY5aYNx4dc8wS7tYGPWwloyRb+6SzukfNxF0OSC2xxJab8OaolwPISmZNvVB+yWDNlUXoRx4AFZNA9a2IF7XMWcnqJCsigHJ2c7DllZdyCCHf4aRbkibx0Zc+d+2507IgyET9/Nl2iSfixF2E= ARC-Authentication-Results: i=2; server2.sourceware.org Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 47U9YVI8031114 for <libabigail@sourceware.org>; Fri, 30 Aug 2024 12:12:34 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h= from:to:cc:subject:date:message-id:content-transfer-encoding :content-type:mime-version; s=corp-2023-11-20; bh=dhaTJmk19O63SE Vm9BecQ5pYQL7+U/fPMOmQPMtRK5Y=; b=iONoiAaRRfBWwio0Qc0ITFI5OrUOud DHa0xwQSPIKoDiGasUxH/FUrHVBQ1J/PlLHO2NNkH79gDMF7vBWgCASPStScNoRz V0rqJzqh8x+mr7fq/zsWqolf/RFsxoexVJIDjL+9uh9tFrPrwPQwPcDzpUVAgPDo U3kUup6SnpYjUFxXydDqyMNCoFYr8wyTYat2KQjgq+Ca1CdZf0SlgI4163iECMk7 Qp+SgwAEdyA1xuzp7gfH9+Jc3MZgOClLjkTGR7m0AfrM3JhlC4+BTaSxT3wF3Lzr xhzZ3wN72uAlYJ3OaJAwqbLrrX1PP2kxY4QOqXvCKQTkvGwMd3i8mBZA== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 41b9v7gegk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <libabigail@sourceware.org>; Fri, 30 Aug 2024 12:12:34 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 47UAUN9P032482 for <libabigail@sourceware.org>; Fri, 30 Aug 2024 12:12:33 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2049.outbound.protection.outlook.com [104.47.55.49]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 418a0y076e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <libabigail@sourceware.org>; Fri, 30 Aug 2024 12:12:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=gqOpV4nV34NraRaUPC3nHXuZiWf2mR1dh91ZGBKuM87TUhLYr0ds/WMpNTh98P3btdZy4LKE528pJudIFIonCI+DHo8fB16rxzff0KZVNQoQYxVLgcB0pgcWYJYbCC1vKo+h7628EM5RW6BsPDN5Rupozu6gl9MX0lmMphKdhxhucpSR8Ac4/0mb8zOEcIBnxld8hsg7+jtCPhG521TlhAap5IJMTbPubZszaiYkP0+p9WGAl5uqDIkIaZ5qnMhZ5JX6zEEmvdoq8B2iX2AuF/pcUt6iAPzHycuQEuwklo+Zi9UpbCCPQkxxWklRTbKBRyDSR97axEG9I+XEKx8cIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=dhaTJmk19O63SEVm9BecQ5pYQL7+U/fPMOmQPMtRK5Y=; b=MJ4H5YEs+efSbeBg4KyXyVfi48/Gr02XJNYuGDueq5XfeVu+hlJob47JhFOLZdK97zqBVzrrYb68BN1vG+hmGXKxZOysbAV2Trys8oHf+uSfOFZjgr+Y1UT6wwuEts2g+FAmlBhaO/apKJQffaGHashXX1JQb5VM+QHbKR9YZBduNTYNBCoBN+rqwcN+74r9btdm/ecukTaKxapon4uDrWu/jTqQu45Iv5T9065tE0jIa3SG6mo6SOkZLYLyfskxvGmvbrDhkSSnF+tLVQTaRxr4MmPu4dSByqhd4loYSPy3wSwpWgi3PwPrJcpKSD9kgIEmarYvFngkCAVNfySdjg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dhaTJmk19O63SEVm9BecQ5pYQL7+U/fPMOmQPMtRK5Y=; b=RexaFeFtmPG6oDb7bGMz6xEGLQJUQUmNPCcRLwaTtx3qCM2VRJKHuhRJA91z9RHssaASwVjOOEmmpk4DwBuzF6v3GZ31PdHKYprsKKncFAiasP3uyL8s1ojBMIQdw7MK5dOF7ApSZ8yeo/J6owlEOxJ9qV1XWfQiwzEEddp6N6M= Received: from CY5PR10MB6011.namprd10.prod.outlook.com (2603:10b6:930:28::16) by MN2PR10MB4175.namprd10.prod.outlook.com (2603:10b6:208:1d9::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20; Fri, 30 Aug 2024 12:12:29 +0000 Received: from CY5PR10MB6011.namprd10.prod.outlook.com ([fe80::3aca:a3f6:e92f:782e]) by CY5PR10MB6011.namprd10.prod.outlook.com ([fe80::3aca:a3f6:e92f:782e%4]) with mapi id 15.20.7918.018; Fri, 30 Aug 2024 12:12:29 +0000 From: claudiu.zissulescu-ianculescu@oracle.com To: libabigail@sourceware.org Cc: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> Subject: [PATCH] abg-tools-utils: Fix memory leak when using CTF option Date: Fri, 30 Aug 2024 15:12:20 +0300 Message-ID: <20240830121220.865234-1-claudiu.zissulescu-ianculescu@oracle.com> X-Mailer: git-send-email 2.46.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: VI1P189CA0023.EURP189.PROD.OUTLOOK.COM (2603:10a6:802:2a::36) To CY5PR10MB6011.namprd10.prod.outlook.com (2603:10b6:930:28::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR10MB6011:EE_|MN2PR10MB4175:EE_ X-MS-Office365-Filtering-Correlation-Id: 62af99f5-ec82-4a2e-12ee-08dcc8ed04bc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|376014; X-Microsoft-Antispam-Message-Info: nRgJHkKXXo+q5AQJ0W7j5MOsGgu3ta+ksvF9UNtEIYyQfs4mxdRv/cyjA8VNOszP55+K6YWuVjaklhui4OUWDQMaVP65Xtnhx+dGs2zL4WxTpvSVJX6ibDipYsqxqaQQPB4DNnZhF4B70Qi9T7LD/7I4YM16VnbH522PulZTI2j41vAgR6s2BTE7Pi2xIpzk23V6Hi7XmVGjD5oWEIW1wsTUOkKVNr8luQXL8SLTQXy9tmWalbW/IHbSuJ3qF1J2HGH8jM+jr2hhtX/qB2SlK8eV8ma9wGtUSf0Otu7WaTz23tHzmN9VvvRUtRJ2CqUfZcdbIwQFNmouj0FvehzkhsrUXAr0RFTb3a4jyvVm3bJuqBfVjxw937/J1RfXDG0UGVD0BrNsZLVESYJg8nIkvN2b5Bj810RZb5GpY2gVuKu5srORH9Mf1PWRPvr5kGSIoTJ54wfGmuB1CkoYKi57xas8Z1d3cVmQ/U9u/TPe9Eh4vUfWOFmjLUC+ESMEsrobLy+bkVfwTkRn6GDRtIeyX4mBjPO17TpMjcSESkjwSnWEQDfg6Wy66d8urxgDWlfNU+7F1aXahC/jDikHVq2nLfkPA2C8L+omHxFnvd6wk0hyDqOsFKBv4SqFPv3cgdKIwoUZy/zs5GL+YxrXbcSqcMTGBXigtbbG55Va4JnJEwWaeb+o1lnFG75Z1LUh0b+CgIQXfKXt8VGki6z0UUBMm46FA8ICh/GT6fFxA9SoqH2bD2VQhtr4LIDJmzMrsE2Dcv/HMxLtDzVVx7m5foeMuyXTN7A/J7OFBtTJpH2nqwGA0R4AHKQbk0AFSOlNDqnYoqTdmHe+qyuOirYbT7/oGb8aEnjWVUGPp/8ssrRda2uMDWN/PEBdllD2kMzi0xa0duNscebjvFqXtXRvdBvQDLg5Db2Q6ytZCkHXczMwsTmpPXiKew6j+K7sGJQV2AWHY69IMvFD0dFNc8/t2CMKK7f/it2GSP9nOPQW78mycn6rDaJNnWjDRm4h1AEXHZUf/V8gexr+mlpZO/HhSaYxYM12HyNTLlAXU9kdbCjViYYsrmN0/FeM4oGtP248cThYRie0y8uDEWSDC0zoB+39OVaIi7fqYkWPy7FZ0t5yGhTaUq8f862/r0biIb38sAX9pSFuSGwXGR1+o+M4aNtWO6CstcHdez8CQPRBqYwsIpmEwy/Rfm88qXkF+ktd9k+UTTyvZSzgz4wMBg17XYe+RVHpjagZR90QhkqL7b0lTiN6/e3FE2Mna4IRU/L4X6XnjGAzvUXZweEn8txMTMStvr23MNZS8gk8zq1l7DdDS1GOp9zCe7Ha5Z9Enf3BJbloOaPoU1uAqgRj+vPP8ngGlA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY5PR10MB6011.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: WMpRq0YewnZ1aPTREvUS4EnTiZoDpjzUDPoM+fNhtXqNtsjIKwy20WwzzO4Z2i0uf3+8LOAs9PCk87SVDc59KotKdj/tMIQycj3K01fHaOZdFU+NEvpPTCSym9Ij7CyJEq6gp8MUdMFH2J/O2Nic+asttyEC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xT7hsJIG2XZF87qBEhn2hQ9pg5yPrDBPknjLuQEqjGGaWw0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 62af99f5-ec82-4a2e-12ee-08dcc8ed04bc X-MS-Exchange-CrossTenant-AuthSource: CY5PR10MB6011.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2024 12:12:29.3811 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QsQdAZXHKxRQzhhhTHgmGeqo+a3lEWOTWP22Af6y6GS5+jYc+dK+0mIsxG0R0SEWjBP5ydBmQQ8AVjVtMlb6qjGZfVTFjgTdAg6y4ZyHFHFKiq4P16i1r8Gsg9P3nVJFDtTTN+sdWyjm6pPAbq9tkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR10MB4175 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-08-30_07,2024-08-30_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 mlxscore=0 suspectscore=0 malwarescore=0 spamscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2407110000 definitions=main-2408300092 X-Proofpoint-GUID: ul415adxVZKyHgB-sXmMpN8KENRzUJaE X-Proofpoint-ORIG-GUID: ul415adxVZKyHgB-sXmMpN8KENRzUJaE X-Spam-Status: No, score=-14.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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: libabigail@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Mailing list of the Libabigail project <libabigail.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/libabigail>, <mailto:libabigail-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/libabigail/> List-Post: <mailto:libabigail@sourceware.org> List-Help: <mailto:libabigail-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/libabigail>, <mailto:libabigail-request@sourceware.org?subject=subscribe> Errors-To: libabigail-bounces~patchwork=sourceware.org@sourceware.org |
Series |
abg-tools-utils: Fix memory leak when using CTF option
|
|
Commit Message
Claudiu Zissulescu-Ianculescu
Aug. 30, 2024, 12:12 p.m. UTC
From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> The scope of di_root_ctf_ptr is limited to if-block, leading to dropping the CTF reader when using abipkgdiff tool. Fix it. * src/abg-tools-utils.cc (build_corpus_group_from_kernel_dist_under): change the scope of di_root_ctf_ptr variable. Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> --- src/abg-tools-utils.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Comments
Hello, claudiu.zissulescu-ianculescu@oracle.com a écrit: > From: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> > > The scope of di_root_ctf_ptr is limited to if-block, leading to > dropping the CTF reader when using abipkgdiff tool. Fix it. > > * src/abg-tools-utils.cc > (build_corpus_group_from_kernel_dist_under): change the scope of > di_root_ctf_ptr variable. > > Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@oracle.com> Applied to master, thanks! Cheers,
diff --git a/src/abg-tools-utils.cc b/src/abg-tools-utils.cc index 1bc2e233..bfc33d70 100644 --- a/src/abg-tools-utils.cc +++ b/src/abg-tools-utils.cc @@ -3155,10 +3155,11 @@ build_corpus_group_from_kernel_dist_under(const string& root, #ifdef WITH_CTF shared_ptr<char> di_root_ctf; + char *di_root_ctf_ptr; if (requested_fe_kind & corpus::CTF_ORIGIN) { di_root_ctf = make_path_absolute(root.c_str()); - char *di_root_ctf_ptr = di_root_ctf.get(); + di_root_ctf_ptr = di_root_ctf.get(); di_roots.push_back(&di_root_ctf_ptr); } #endif