mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
pie/restorer: Fix fd leaking on error path
Nothing serious since OS will close it anyway but still to be precise. Signed-off-by: Cyrill Gorcunov <gorcunov@virtuozzo.com> Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
This commit is contained in:
parent
1d4777e452
commit
2982867185
1 changed files with 1 additions and 0 deletions
|
|
@ -1960,6 +1960,7 @@ long __export_restore_task(struct task_restore_args *args)
|
|||
}
|
||||
if (ret != thread_args[i].pid) {
|
||||
pr_err("Unable to create a thread: %ld\n", ret);
|
||||
sys_close(fd);
|
||||
mutex_unlock(&task_entries_local->last_pid_mutex);
|
||||
goto core_restore_end;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue