mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-05 11:07:59 +02:00
client: small leak fix
This commit is contained in:
parent
7059c91c7a
commit
a116eafc57
1 changed files with 4 additions and 1 deletions
|
|
@ -294,7 +294,10 @@ ply_boot_client_process_incoming_replies (ply_boot_client_t *client)
|
|||
if (size > 0)
|
||||
{
|
||||
if (!ply_read (client->socket_fd, answer, size))
|
||||
goto out;
|
||||
{
|
||||
free (answer);
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
answer[size] = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue