mcexec_open_exec() fix filename memory leak

This commit is contained in:
Balazs Gerofi
2017-06-09 15:51:14 +09:00
parent 4d0e0728f4
commit 0733592eb5

View File

@ -1575,6 +1575,7 @@ int mcexec_open_exec(ihk_os_t os, char * __user filename)
dprintk("%d open_exec and holding file: %s\n", (int)task_tgid_vnr(current),
kfilename);
kfree(kfilename);
kfree(pathbuf);
return 0;