]> 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>
Tue, 6 Feb 2018 09:27:12 +0000 (10:27 +0100)
remove logically dead code

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

index 66ed38b769209c44457204fb087a4fc121f3a592..19f6bb352cdfcf089959a0f2b0c4716ab2a8af09 100644 (file)
@@ -152,8 +152,6 @@ static void prevent_forking(void)
        }
 
 on_error:
-       if (fd >= 0)
-               close(fd);
        free(line);
        fclose(f);
 }