Bug 275338

Summary: sbin/camcontrol/camcontrol.c getdevtree() memory leak
Product: Base System Reporter: firk
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: 14.0-RELEASE   
Hardware: Any   
OS: Any   

Description firk 2023-11-25 20:02:38 UTC
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().