From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 735533858D33; Tue, 28 Feb 2023 11:38:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 735533858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677584296; bh=BLJRCL0YMQi/U6OrJqequ8upJRuHuf9IDBVK/Op8zVY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZGwyuGUUTV1xFrx9tbxrU5645bMkO/HR2g9xbGlmhejOmIAOD7USLKu7Ih27Ta7TN zaR7E2p0JW/4OaLYzzMQaFeKeVoyUkGvaIZnkIgC+mtAT9dRrl9sPmzdtWFzbOGOzo x2G4as3Ekx6jc2nnO7WfCsvK+XaxN56Vxd0zOSuM= From: "mark at klomp dot org" To: elfutils-devel@sourceware.org Subject: [Bug libdw/29434] Memory leak in `dwarf_getscopes` Date: Tue, 28 Feb 2023 11:38:14 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: libdw X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: mark at klomp dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29434 Mark Wielaard changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #19 from Mark Wielaard --- I hope this (plus the other changes to dwarf_getscopes) will fix the origin= al issue too. It should be part of 0.189 (which should be released this week).= If it didn't solve the issue please feel free to reopen this bug or file a new one. commit e24d8a4a3ea106608bb3e8d33c4639cf71d0f08d Author: Mark Wielaard Date: Wed Feb 22 23:34:00 2023 +0100 libdw: Fix dwarf_getscopes memory leak on error When there is an error in dwarf_getscopes after the initial scopes have been allocated, e.g. when looking for the inlined scopes, then the scopes would leak. Fix this by explicitly free the scopes on error. https://sourceware.org/bugzilla/show_bug.cgi?id=3D29434 Signed-off-by: Mark Wielaard --=20 You are receiving this mail because: You are on the CC list for the bug.=