From: Frederic Crozat Date: Mon, 10 Aug 2009 10:02:30 +0000 (+0200) Subject: [daemon] fix memleak in argument parsing X-Git-Tag: 0.7.0~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1d66397aff055af951dba55fc423b2536e840a4;p=thirdparty%2Fplymouth.git [daemon] fix memleak in argument parsing --- diff --git a/src/ply-boot-server.c b/src/ply-boot-server.c index 96fad90e..9a1ed8e4 100644 --- a/src/ply-boot-server.c +++ b/src/ply-boot-server.c @@ -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; }