Commit 27c55d8e authored by Ye Li's avatar Ye Li

MLK-20239-1 imx8m: Fix resource leek

Fix coverity issu CID 4338241: Resource leak (RESOURCE_LEAK)
leaked_storage: Variable file_ptr going out of scope leaks the storage it points to.

Add munmap for the file_ptr
Signed-off-by: default avatarYe Li <ye.li@nxp.com>
parent f351d69f
......@@ -840,6 +840,7 @@ void generate_sld_with_ivt(char * input_file, uint32_t ep, char *out_file)
exit(EXIT_FAILURE);
}
munmap((void *)file_ptr, sbuf.st_size);
close(ivt_fd);
close(input_fd);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment