From: James Hunt Date: Wed, 12 Oct 2011 02:11:10 +0000 (-0400) Subject: main: plug fd leak X-Git-Tag: 0.8.4~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1946bbc0de8be51618998a587d14a7069a3079b5;p=thirdparty%2Fplymouth.git main: plug fd leak This plugs an fd leak in an error path --- diff --git a/src/main.c b/src/main.c index dbd4d822..140df67c 100644 --- a/src/main.c +++ b/src/main.c @@ -1689,6 +1689,7 @@ get_kernel_command_line (state_t *state) if (read (fd, state->kernel_command_line, sizeof (state->kernel_command_line)) < 0) { ply_trace ("couldn't read it: %m"); + close (fd); return false; }