From nobody Mon Nov 04 15:39:00 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 4XhwcN5cQnz5cDcJ; Mon, 04 Nov 2024 15:39:00 +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 4XhwcN53Qsz4h5Z; Mon, 4 Nov 2024 15:39:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734740; 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=SMuTZMv4MfWZ9hW3RFS2PIUEbgK+85oVKzeALoWM734=; b=KE5iJbiBd1Z+nYUAJEjp/bD2sDNjwo8zZAQkJq+y8PNCV3YB8ig879sRED+2DxZuqxu1CX W3ollSoSzwp94nsPmD2vczz8dF1D9F12mvi40OEZYJQPd762vhKhph+4PML7B25Ih/VuTZ n72pygIVqiGI6Sz+eVnYq2S9xIXla9EKJ8/ZDVSGP3Mx7O0Idh3Nt6wJxhfa2mB3XPtTVl gKiWqlf33w/gK5UqaGg2Y/NNu/yU361jCR+AQUzRzscY0ROv87zbnOkNtCX5eh6eT3C6yl cNjrLNcjBB+hBD/dVjZfi/J73fM7WHXT+tuylTJF7myVaMY+l2/RijepY/o0Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730734740; 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=SMuTZMv4MfWZ9hW3RFS2PIUEbgK+85oVKzeALoWM734=; b=ysp3hdTtD0Mcv16kGfPhfqvs8VeDuJe9ljwolxKmVOfpTkOlSdeDWVxXsxszlL4e5j6SBY LX63wQSdKNtIxf2njbv5mzz7V6e9a8x+s4LaErTOG/Wc3XAT5Bo9nR9l3yb2lLbdHS06Ur 5pwM+204bM5Ap1XXlbkVceRgWVVHKa5Zymyd12gAHM3/2ddRNU7xkPXHavoI793bJAEjW4 56lLlXPzvFL+nNi+fn1MzPgnFLe/+iv/aJUxJWWVZ3FiFhlFUcn5Ot8kn1pwHonRlV/yM9 q2v8gxjj7y6iz7E/v5K4njD8hHWaN7NCp6vOkiLzHQPCvby4RGbW+xD+OB9x/w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730734740; a=rsa-sha256; cv=none; b=Se1OPq7tmpQUuMep80T8LHZfIPBLl3xDl1sA8ZGCH4tOrCApl5Vh0/KqHqFW57l8UcWike Y6Yu8zWvzQEJFvgh3RR/eg0G7T8cuRTdCwFXQhKcqetBMRxfwWnvEcZkWqiQPNKAqH0QS4 yLEbcbnBYY78K4ctOWF0d8kZ9C28W5ixALXqsPI7otnFHGQNAvkOJ+fHynxt0jiRD4gFLl XDJ/iQYv7xy/LNH1RFJQzNIO7KK0x+WEpayPOE1vd9wNgsL5E7M31s/m2HrfPDFgRFWu6d uFWcTzxokjaiYA31fGZyy+cQ8WcO9XzTCbtjihO+bKyMONzQyVbahgF3VVSnQw== 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 4XhwcN4ft7zdwG; Mon, 4 Nov 2024 15:39:00 +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 4A4Fd0NM036221; Mon, 4 Nov 2024 15:39:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A4Fd09r036215; Mon, 4 Nov 2024 15:39:00 GMT (envelope-from git) Date: Mon, 4 Nov 2024 15:39:00 GMT Message-Id: <202411041539.4A4Fd09r036215@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: 4f47e1d88f91 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 4f47e1d88f9107af16ffea5d36c505b1fcc44944 Auto-Submitted: auto-generated The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4f47e1d88f9107af16ffea5d36c505b1fcc44944 commit 4f47e1d88f9107af16ffea5d36c505b1fcc44944 Author: Mark Johnston AuthorDate: 2024-10-28 13:52:32 +0000 Commit: Mark Johnston CommitDate: 2024-11-04 15:38:53 +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 71b2a318ccfe..4b192c48cafd 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);