mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
camcontrol: Plug a memory leak in getdevtree()
PR: 275338 MFC after: 1 week (cherry picked from commit abfd031b482f92320e29a2c2ac80fcd23e134446)
This commit is contained in:
parent
8635c1ad51
commit
5a07e99407
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue