Tofu: per-fd path memory leak fix
Change-Id: I451472365806333adfac6dae32746195e3c30694
This commit is contained in:
committed by
Masamichi Takagi
parent
1b3dd45dbc
commit
e7b8aeb4f7
@ -1304,6 +1304,11 @@ void terminate(int rc, int sig)
|
||||
tof_utofu_release_cq(proc->fd_pde_data[fd]);
|
||||
proc->fd_pde_data[fd] = NULL;
|
||||
}
|
||||
|
||||
if (proc->fd_path[fd]) {
|
||||
kfree(proc->fd_path[fd]);
|
||||
proc->fd_path[fd] = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user