]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425844
authorSimos Xenitellis <simos.lists@googlemail.com>
Tue, 15 May 2018 11:37:14 +0000 (11:37 +0000)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 10 Dec 2018 07:21:58 +0000 (08:21 +0100)
Resource leak

Signed-off-by: Simos Xenitellis <simos.lists@googlemail.com>
src/lxc/conf.c

index fe79d26e6bd8b11231c856ee5875f329cb4766dd..3e503dec7dfb2bb043de7de4b8116331a19b3c4e 100644 (file)
@@ -4226,6 +4226,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;
        }