From 7444657c87fddb97b50318ae64f5963f8eca705b Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 27 Jan 2021 20:42:21 +0100 Subject: [PATCH] attach: use free_disarm() Cc: stable-4.0 Signed-off-by: Christian Brauner --- src/lxc/attach.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lxc/attach.c b/src/lxc/attach.c index 5f36a0e44..2dca60dcd 100644 --- a/src/lxc/attach.c +++ b/src/lxc/attach.c @@ -109,8 +109,7 @@ static inline void lxc_proc_close_ns_fd(struct lxc_proc_context_info *ctx) static void lxc_proc_put_context_info(struct lxc_proc_context_info *ctx) { - free(ctx->lsm_label); - ctx->lsm_label = NULL; + free_disarm(ctx->lsm_label); if (ctx->container) { lxc_container_put(ctx->container); -- 2.47.2