mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 05:03:17 +00:00
commit
5465e67305
@ -172,7 +172,6 @@ static void lxc_proc_put_context_info(struct lxc_proc_context_info *ctx)
|
|||||||
|
|
||||||
lxc_proc_close_ns_fd(ctx);
|
lxc_proc_close_ns_fd(ctx);
|
||||||
free(ctx);
|
free(ctx);
|
||||||
ctx = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -908,6 +907,7 @@ static int attach_child_main(struct attach_clone_payload *payload)
|
|||||||
close(payload->ipc_socket);
|
close(payload->ipc_socket);
|
||||||
payload->ipc_socket = -EBADF;
|
payload->ipc_socket = -EBADF;
|
||||||
lxc_proc_put_context_info(init_ctx);
|
lxc_proc_put_context_info(init_ctx);
|
||||||
|
payload->init_ctx = NULL;
|
||||||
|
|
||||||
/* The following is done after the communication socket is shut down.
|
/* The following is done after the communication socket is shut down.
|
||||||
* That way, all errors that might (though unlikely) occur up until this
|
* That way, all errors that might (though unlikely) occur up until this
|
||||||
|
Loading…
Reference in New Issue
Block a user