From nobody Mon Nov 04 15:38:42 2024 X-Original-To: dev-commits-src-all@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 4Xhwc24YVlz5cDYF; Mon, 04 Nov 2024 15:38:42 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xhwc23NXZz4gf0; Mon, 4 Nov 2024 15:38:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734722; 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=HIVusyVKdK/sdk2lJ9vhKLfU0GwYiMhHpFmGIlCwKkY=; b=B94/eWy+TV3XpRT/1lbYYToBPzUs8nOTG8XmYm0ePiN09rkRx93vK28xEwXXmKflBugm1H kKhMv9v+00lSOrGTtBacSGHd1N21na9zDodOZ+CWx7LbYblBf0Z60MqjyNAjgtvooXyMe2 41UmOH+SVRCCjWYl3l9KMjfqCQDsRfcCuAWVrQmWy47EU0b4+GnG1tzXUzEboimRmkzQ4L Xo3TPRtKczoRglbFAjNAlEAWeojGfGtj+qGtJzKVcSYLuMba6+5siZ/kKoXT8zTJYV9563 3XxXCYAIuBI9msKBtTy00ZgJsnxb3Iun+96fmxKnGHjmu0f47dSrl7GXeUVyLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734722; 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=HIVusyVKdK/sdk2lJ9vhKLfU0GwYiMhHpFmGIlCwKkY=; b=WI8n6LVYk/Am5NNheU4jx8LK+kIPJt60Fk+9E9cxD5WYwGSx+qQg9TVi26mPtIEUhBhBxP kYhWExTVGiO401kW9BNEU/ImfLD8pWNaown3F6d2MJkUEWmrqniI293A9vxRm6yx+d00UH 5VdVD+040H5qDrcZoHgcJA15lMyQgR7YZaMfd0zumaKUqA0KNh/AIYF0kwKN72Sw55cJE8 maGBT3OJ6OdSC8EiNKTdZ4eU3YXojUY6z0AQ0vn93oEX6YSIskrmKtUfvt0uV1JbFclBhh 8BfIugVPJQqLxccEu7Px3Iq5VhG6BvZDaxEEevAAbmyCZyvCZmscw6vzMFuLxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730734722; a=rsa-sha256; cv=none; b=BgTdPHu6x8yLdl3t6Br3MU5rpX0/7PdiGeuAkxI2cxY/YM4djGkfYnVmqXTtlBsnjZJLSS kistjBvzhVnjuH8JmNcWTt8g/qS/G1AvN+toh9LxawSXi2M2NqhnM+n3TInzes8ycHsozp O4OQShZhIdFQxu4GQmg+YFg5VOG3D2hxhcahJ3mVkwpCVL2sbqXAtNn4nMmcUPjFLpqTnW 3T7fnUBeQGd1Ia80EUwaFTySY6eoNUxNmK255UUMayjnLaN/w3qQEJvaymUhDs949D+vdf 6/f0Vhgipg/d/mxw1BonrkSoD6kZ+mlHa3h7GPsu1scO4aN45Xmp4sih4zkWpw== 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 4Xhwc2303bzfM5; Mon, 4 Nov 2024 15:38:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4A4FcgDv035972; Mon, 4 Nov 2024 15:38:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fcgle035969; Mon, 4 Nov 2024 15:38:42 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:38:42 GMT Message-Id: <202411041538.4A4Fcgle035969@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Johnston Subject: git: 5a07e99407ea - stable/14 - camcontrol: Plug a memory leak in getdevtree() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/stable/14 X-Git-Reftype: branch X-Git-Commit: 5a07e99407eac4211de2d985b39b4c77e94beb09 Auto-Submitted: auto-generated The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=5a07e99407eac4211de2d985b39b4c77e94beb09 commit 5a07e99407eac4211de2d985b39b4c77e94beb09 Author: Mark Johnston AuthorDate: 2024-10-28 13:52:32 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 15:38:35 +0000 camcontrol: Plug a memory leak in getdevtree() PR: 275338 MFC after: 1 week (cherry picked from commit abfd031b482f92320e29a2c2ac80fcd23e134446) --- sbin/camcontrol/camcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index db26b45ac508..3348d759b913 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -652,6 +652,7 @@ getdevtree(int argc, char **argv, char *combinedopt) if (need_close) fprintf(stdout, ")\n"); + free(ccb.cdm.matches); close(fd); return (error);