]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[daemon] fix memleak in argument parsing
authorFrederic Crozat <fcrozat@mandriva.com>
Mon, 10 Aug 2009 10:02:30 +0000 (12:02 +0200)
committerFrederic Crozat <fcrozat@mandriva.com>
Tue, 11 Aug 2009 15:25:41 +0000 (17:25 +0200)
src/ply-boot-server.c

index 96fad90e90933a0acc324f29a4f0b6e9509b2e69..9a1ed8e45dac457ec5e238af167d9fe8b1bbe135 100644 (file)
@@ -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;
     }