Bug 275338 - sbin/camcontrol/camcontrol.c getdevtree() memory leak
Summary: sbin/camcontrol/camcontrol.c getdevtree() memory leak
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 14.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-25 20:02 UTC by firk
Modified: 2023-11-25 20:02 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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().