Tofu: per-fd path memory leak fix

Change-Id: I451472365806333adfac6dae32746195e3c30694
This commit is contained in:
Balazs Gerofi
2020-08-25 13:09:09 +09:00
committed by Masamichi Takagi
parent 1b3dd45dbc
commit e7b8aeb4f7

View File

@ -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