1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

camcontrol: Plug a memory leak in getdevtree()

PR:		275338
MFC after:	1 week
This commit is contained in:
Mark Johnston 2024-10-28 13:52:32 +00:00
parent 01c738cd5c
commit abfd031b48

View File

@ -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);