From nobody Mon Oct 28 15:14:47 2024 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 4XccPh103bz5bSXp; Mon, 28 Oct 2024 15:14:48 +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 4XccPg60b4z4tJ1; Mon, 28 Oct 2024 15:14:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730128487; 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=gH1e7xaGl4Rr7H08Vq2xKgONw4PfpmhRERcj1urQFiI=; b=TnsZfHGMH9hnBium1ps0k4uNnWzlQVbR/TZX6SQj+77B/cIZykk6qnQn6wbZL5rp36SUm9 tDJhMLAx0wuBOmFBmuljnLrjvm6eGxjeulkzJHAbMWfZxq2KsVygCEbARko9kb7l/NiW2S cpiNpAQI0ykVqqMa3SXWpFUNuf8+atTRJmlmUl3QA1vN0DTFusLul01GGm0QNHwOn83Fx1 zgWTDqrwA832/iPjyAasaLIGOSfgmw1V3SoMzr4CVFjlUSSSVOL7axnFRP8XKwP+LVkPJ/ dz314NRi/SSi8bTcKkaNanSUc1CGcupG3lrZ6sEjcugUCzczylxP4Up+o2ujEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730128487; 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=gH1e7xaGl4Rr7H08Vq2xKgONw4PfpmhRERcj1urQFiI=; b=LDz9a6ANUj+8mBazAThmo7Kmmippgc99lOOJJfFyWIV+xwl3XEUnHCKpxkwcbHUSzyK+qS fpUcU6NshYGUoojogzh5Bvqnf2RZKJkip9jtdNMeyD81QtqNWlo6Gb+Lon96an5uVXzsj/ szxFWtc+S9ttAyexq6cOOIkG2vbK6PhxN8cq0DSVarfqapjDqHOQeTv9duElK/5XV+eVQK EeDRiEjeFgVZJXWsVXjypYcy7OL4dCxdeNwDW4CsaOX4tpBzzmHBUkpE88scIoOR/IGA1o BNt1b1UUc1hUNtKtZ4ZGRaPjgweA74HGaoRAzTqF3flMMsE+FxqEIh1SpEaEfA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730128487; a=rsa-sha256; cv=none; b=Ak6Zzo8fLytnjZH4VazFfAD6Hnzl/PwvOYhM1v16T3GwnwyEZpxQxbDBIhAT+36rcRYBEc qCDP69iLzPcUyMjY/+K9nZmH60t1MRzs/4+roZGKKhu7ceNG3XFlb+BkBaUkTedvP4Fziy H4BF1K8UfFyKw4oGhKgUEpes7viODJrCwZ4eSIlt7P6kqxhzkBptGP9mTYSA6TaUO5+8md AY3x3H0YdC4omaRS/t36DUJFToyJDXAlbWuRtZ6cfzzt8cLagpsRHWtEysV0OCk4gc9Xxr p6q9/p0EZpoPb7zzn7UETwaFY4KL910SxVBEna1s83fWMQZZRbX+UFXS4W/k6A== 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 4XccPg5cjFzkKr; Mon, 28 Oct 2024 15:14:47 +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 49SFEllJ053799; Mon, 28 Oct 2024 15:14:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49SFElr9053796; Mon, 28 Oct 2024 15:14:47 GMT (envelope-from git) Date: Mon, 28 Oct 2024 15:14:47 GMT Message-Id: <202410281514.49SFElr9053796@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: abfd031b482f - main - camcontrol: Plug a memory leak in getdevtree() 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-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: abfd031b482f92320e29a2c2ac80fcd23e134446 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=abfd031b482f92320e29a2c2ac80fcd23e134446 commit abfd031b482f92320e29a2c2ac80fcd23e134446 Author: Mark Johnston AuthorDate: 2024-10-28 13:52:32 +0000 Commit: Mark Johnston CommitDate: 2024-10-28 15:14:36 +0000 camcontrol: Plug a memory leak in getdevtree() PR: 275338 MFC after: 1 week --- sbin/camcontrol/camcontrol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 3aa91eb00ecf..b7ad7f7d4b25 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -653,6 +653,7 @@ getdevtree(int argc, char **argv, char *combinedopt) if (need_close) fprintf(stdout, ")\n"); + free(ccb.cdm.matches); close(fd); return (error);