mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 15:58:20 +02:00
client: fix fd leak
This plugs an fd leak in an error path
This commit is contained in:
parent
7d198ba28a
commit
9fffcda4c5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue