From 9fffcda4c55a352c58d1c630d508ac0544ae1498 Mon Sep 17 00:00:00 2001 From: James Hunt Date: Tue, 11 Oct 2011 22:01:07 -0400 Subject: [PATCH] client: fix fd leak This plugs an fd leak in an error path --- src/client/plymouth.c | 1 + 1 file changed, 1 insertion(+) 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; }