mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 20:08:17 +02:00
Fix heap corruptor in ply-boot-server
This fixes a memory corruption bug that cropped up during a round of leak fixes a while back.
This commit is contained in:
parent
631b14c1b7
commit
e1619f36bf
1 changed files with 3 additions and 3 deletions
|
|
@ -196,7 +196,7 @@ ply_boot_connection_read_request (ply_boot_connection_t *connection,
|
|||
|
||||
if (!ply_read (connection->fd, &argument_size, sizeof (uint8_t)))
|
||||
{
|
||||
free(command);
|
||||
free (*command);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -204,7 +204,7 @@ ply_boot_connection_read_request (ply_boot_connection_t *connection,
|
|||
|
||||
if (!ply_read (connection->fd, *argument, argument_size))
|
||||
{
|
||||
free(command);
|
||||
free (*command);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
@ -307,7 +307,7 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection)
|
|||
strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NAK)))
|
||||
ply_error ("could not write bytes: %m");
|
||||
|
||||
free(command);
|
||||
free (command);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue