From: Christian Brauner Date: Sat, 20 Jan 2018 20:46:31 +0000 (+0100) Subject: coverity: #1426694 X-Git-Tag: lxc-3.0.0.beta1~66^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7af33e24ea644eededb3f3be21cc7687e80bdb6;p=thirdparty%2Flxc.git coverity: #1426694 remove logically dead code Signed-off-by: Christian Brauner --- diff --git a/src/lxc/lxc_init.c b/src/lxc/lxc_init.c index c44982726..594b00094 100644 --- a/src/lxc/lxc_init.c +++ b/src/lxc/lxc_init.c @@ -155,8 +155,6 @@ static void prevent_forking(void) } on_error: - if (fd >= 0) - close(fd); free(line); fclose(f); }