]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425844 2329/head
authorSimos Xenitellis <simos.lists@googlemail.com>
Tue, 15 May 2018 11:37:14 +0000 (11:37 +0000)
committerSimos Xenitellis <simos.lists@googlemail.com>
Tue, 15 May 2018 11:37:14 +0000 (11:37 +0000)
Resource leak

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

index e854b8b0335ca056f8a6a716f3b5432502430d51..5c66c6f35bc9e99397017817009795d1cdecf293 100644 (file)
@@ -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;
        }