]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1426694
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 20 Jan 2018 20:46:31 +0000 (21:46 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 21 Jan 2018 00:54:29 +0000 (01:54 +0100)
remove logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxc_init.c

index c44982726dbd13b5718b041b0c4a412d2cdd00c6..594b000941db21a2a789c2b822c1261b7a37afcc 100644 (file)
@@ -155,8 +155,6 @@ static void prevent_forking(void)
        }
 
 on_error:
-       if (fd >= 0)
-               close(fd);
        free(line);
        fclose(f);
 }