[PATCH 2/9] [daemon] fix memleak in argument parsing
Frederic Crozat
fcrozat at mandriva.com
Mon Aug 10 03:02:30 PDT 2009
---
src/ply-boot-server.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/ply-boot-server.c b/src/ply-boot-server.c
index 96fad90..9a1ed8e 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;
}
--
1.6.4
--=-XBPOfM0g7BgBIfvLZXUv
Content-Disposition: inline; filename="0003-space-flares-Fix-memleak.patch"
Content-Type: text/x-patch; name="0003-space-flares-Fix-memleak.patch"; charset="ISO-8859-15"
Content-Transfer-Encoding: 7bit
More information about the plymouth
mailing list