From nobody Mon Apr 10 16:14:34 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PwDZM1hX1z44RKs; Mon, 10 Apr 2023 16:14:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PwDZL3Q9xz4FgB; Mon, 10 Apr 2023 16:14:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681143274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bz2zIfM3YgHy2I5x7fiq9rMRjUVqbtg2Vjb0UgF9b7w=; b=TvODJ82Gp6xQV2QO3wkKBH2O5kKMi5t5b1xeekeeAMU5VLVLoVl9XltXowgIl1lfXB+38i b7lsWw/N2mdg171DXwkv8QpSjFMclKjmcaFyZ6mPzeaPVB3ZsyqG81AqYV8H2l7gNwgvQ3 MvXpn7RQJ48TPk506l2OU+u3d6vOWGviqTVlYFYwLC87RnDt7sVEeqrbzL2EpYbvaKHsZ7 kng3SBr7vxETLTFCznPuAu4SJo6HvWsuRVLkTqgTE/CK+/uRml1ZWwwa/lYPLwXZ909IYz yJzyyeDtwiAAipVuxuQ7g3X+TCm1qa9X0VVfZY8lSl3iexNAjz4P6fGbWrbHZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681143274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Bz2zIfM3YgHy2I5x7fiq9rMRjUVqbtg2Vjb0UgF9b7w=; b=qwu46djxELgBhIHmms3fhUjotTCUT8j7Ww4/cZCqZqJ1QF5U0yiCK8x1hyIY1Qt4SJuFWC GKX+Mbptgb1qltfKQfaEk//CvnfY3d+ywG/2LQiG+qnUMcYK1uT00he7e3VQhZYcCME3SK FuYJ/1CEPbr6eK0prBIjEYAYoNKK9R+A8Xhdklfeldraytms8+7YuZLsdNnd8bqJ+bPFm0 mJpEscPpJkz3o1s1950IRGTd5AadRhLXKHFOp/fQzfFA8IYauQA51aW2wo4cU12CuZVyBW wZ7utsp1RswFlI4v5Um6/+lBMaqUXtdnb6tueKRko/GABPTsS51KhDUbWWf5FA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681143274; a=rsa-sha256; cv=none; b=OwOicpyyfPMj6gaAjokA5M7uQvm4bgSPl1IEV4US3dX8JWm5FMr2+fQ+mEkhoRMPYJLIgw ZD4DWPSNHfPZrOvDzTGBUe1YCWm/7rK5yIhOn8O9RFi+envUy76bvFp9xF2yWtPiDHqpVt h2pQCrZcSkscYk0XlYl8XPgfOQCoBW/OjWZGBo4R8/yBrI/qxHNckGQbWjHziqas5or3GP kzTJymPLaM0PO8zfjziJcqdJjMAHIp+srHMZaf2pp4yc2xMadFa7pbMYWanQ3ljNQJZZwY RiWnjA3+V3pASghWU/0m09EGEcFDGc4k7SV3fhJ3fBifGf4DhCbh3zHErEMp7Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PwDZL2Vsvzx9Z; Mon, 10 Apr 2023 16:14:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33AGEYbu026030; Mon, 10 Apr 2023 16:14:34 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33AGEY9Z026029; Mon, 10 Apr 2023 16:14:34 GMT (envelope-from git) Date: Mon, 10 Apr 2023 16:14:34 GMT Message-Id: <202304101614.33AGEY9Z026029@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 38594ff9c0c9 - main - ofw: fix memory leak in ofwbus_attach() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 38594ff9c0c9568b5082ba3273103904a6afd38e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=38594ff9c0c9568b5082ba3273103904a6afd38e commit 38594ff9c0c9568b5082ba3273103904a6afd38e Author: Christos Margiolis AuthorDate: 2023-04-10 15:31:46 +0000 Commit: Mark Johnston CommitDate: 2023-04-10 16:14:12 +0000 ofw: fix memory leak in ofwbus_attach() PR: 269509 Reported by: Jaroslaw Pelczar Reviewed by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D38903 --- sys/dev/ofw/ofwbus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/ofw/ofwbus.c b/sys/dev/ofw/ofwbus.c index 80d013cd06ee..b35a3ce968e6 100644 --- a/sys/dev/ofw/ofwbus.c +++ b/sys/dev/ofw/ofwbus.c @@ -130,6 +130,7 @@ ofwbus_attach(device_t dev) if (ofw_bus_gen_setup_devinfo(&obd, node) != 0) continue; simplebus_add_device(dev, node, 0, NULL, -1, NULL); + ofw_bus_gen_destroy_devinfo(&obd); } return (bus_generic_attach(dev)); }