From 52ed870ed05a5d046d3754db94898b86ddfa2eb9 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 1 Feb 2021 22:13:03 +0100 Subject: [PATCH] attach: use correct put method Fixes: Coverity 1472763 Signed-off-by: Christian Brauner --- src/lxc/attach.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 3158d7886..05ccb7a79 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -1321,7 +1321,7 @@ int lxc_attach(struct lxc_container *container, lxc_attach_exec_t exec_function, ret = get_attach_context_nsfds(ctx, options); if (ret) { - lxc_container_put(container); + put_attach_context(ctx); return log_error(-1, "Failed to get namespace file descriptors"); } -- 2.47.3