From: James Hunt Date: Wed, 12 Oct 2011 02:01:07 +0000 (-0400) Subject: client: fix fd leak X-Git-Tag: 0.8.4~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fffcda4c55a352c58d1c630d508ac0544ae1498;p=thirdparty%2Fplymouth.git client: fix fd leak This plugs an fd leak in an error path --- diff --git a/src/client/plymouth.c b/src/client/plymouth.c index 84fe6e30..72574180 100644 --- a/src/client/plymouth.c +++ b/src/client/plymouth.c @@ -773,6 +773,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; }