From: Christian Brauner Date: Mon, 1 Feb 2021 21:13:03 +0000 (+0100) Subject: attach: use correct put method X-Git-Tag: lxc-5.0.0~307^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52ed870ed05a5d046d3754db94898b86ddfa2eb9;p=thirdparty%2Flxc.git attach: use correct put method Fixes: Coverity 1472763 Signed-off-by: Christian Brauner --- 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"); }