From: Christian Brauner Date: Wed, 27 Jan 2021 19:42:21 +0000 (+0100) Subject: attach: use free_disarm() X-Git-Tag: lxc-5.0.0~314^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7444657c87fddb97b50318ae64f5963f8eca705b;p=thirdparty%2Flxc.git attach: use free_disarm() Cc: stable-4.0 Signed-off-by: Christian Brauner --- 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);