git: abfd031b482f - main - camcontrol: Plug a memory leak in getdevtree()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Oct 2024 15:14:47 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=abfd031b482f92320e29a2c2ac80fcd23e134446 commit abfd031b482f92320e29a2c2ac80fcd23e134446 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2024-10-28 13:52:32 +0000 Commit: Mark Johnston <markj@FreeBSD.org> 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);