mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-08 14:48:01 +02:00
main: plug fd leak
This plugs an fd leak in an error path
This commit is contained in:
parent
bd7a6bc929
commit
1946bbc0de
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue