[Bug 275338] sbin/camcontrol/camcontrol.c getdevtree() memory leak

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Nov 2023 20:02:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275338

            Bug ID: 275338
           Summary: sbin/camcontrol/camcontrol.c getdevtree() memory leak
           Product: Base System
           Version: 14.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: firk@cantconnect.ru

Possible memory leak, completely harmless for now, but:

sbin/camcontrol/camcontrol.c getdevtree() allocates an array:

> ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);

and I see no corresponding free().

-- 
You are receiving this mail because:
You are the assignee for the bug.