From fbd4a4d1686cefdf2ee2a5e5d77f64bb6c283a82 Mon Sep 17 00:00:00 2001 From: Simos Xenitellis Date: Tue, 15 May 2018 11:37:14 +0000 Subject: [PATCH] coverity: #1425844 Resource leak Signed-off-by: Simos Xenitellis --- src/lxc/conf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/conf.c b/src/lxc/conf.c index e854b8b03..5c66c6f35 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -4497,6 +4497,7 @@ void suggest_default_idmap(void) if (!urange || !grange) { ERROR("You do not have subuids or subgids allocated"); ERROR("Unprivileged containers require subuids and subgids"); + free(uname); return; }