main: plug fd leak

This plugs an fd leak in an error path
This commit is contained in:
James Hunt 2011-10-11 22:11:10 -04:00 committed by Ray Strode
parent bd7a6bc929
commit 1946bbc0de

View file

@ -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;
}