Skip to content
Snippets Groups Projects
Commit a1d66397 authored by Frederic Crozat's avatar Frederic Crozat
Browse files

[daemon] fix memleak in argument parsing

parent bac4c66a
No related merge requests found
......@@ -329,6 +329,7 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection)
{
if (server->update_handler != NULL)
server->update_handler (server->user_data, argument, server);
free (argument);
}
else if (strcmp (command, PLY_BOOT_PROTOCOL_REQUEST_TYPE_SYSTEM_INITIALIZED) == 0)
{
......@@ -369,6 +370,7 @@ ply_boot_connection_on_request (ply_boot_connection_t *connection)
if (server->quit_handler != NULL)
server->quit_handler (server->user_data, retain_splash, quit_trigger, server);
free(argument);
free(command);
return;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment