This fixes a memory corruption bug that
cropped up during a round of leak fixes
a while back.
if (!ply_read (connection->fd, &argument_size, sizeof (uint8_t)))
{
- free(command);
+ free (*command);
return false;
}
if (!ply_read (connection->fd, *argument, argument_size))
{
- free(command);
+ free (*command);
return false;
}
}
strlen (PLY_BOOT_PROTOCOL_RESPONSE_TYPE_NAK)))
ply_error ("could not write bytes: %m");
- free(command);
+ free (command);
return;
}