camcontrol: Plug a memory leak in getdevtree()

PR:		275338
MFC after:	1 week

(cherry picked from commit abfd031b48)
This commit is contained in:
Mark Johnston committed 2024-11-04 15:38:35 +00:00
1 parent 8635c1ad51
commit 5a07e99407
1 file changed
+1
+1
View File
@@ -652,6 +652,7 @@ getdevtree(int argc, char **argv, char *combinedopt)
if (need_close)
fprintf(stdout, ")\n");
free(ccb.cdm.matches);
close(fd);
return (error);