[PATCH 7/9] [client] Fix memleak in command argument

Frederic Crozat fcrozat at mandriva.com
Mon Aug 10 05:30:05 PDT 2009


---
 src/client/ply-boot-client.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/client/ply-boot-client.c b/src/client/ply-boot-client.c
index ca96bcd..5f7bb54 100644
--- a/src/client/ply-boot-client.c
+++ b/src/client/ply-boot-client.c
@@ -224,6 +224,8 @@ ply_boot_client_request_free (ply_boot_client_request_t *request)
   if (request == NULL)
     return;
   free (request->command);
+  if (request->argument != NULL)
+    free (request->argument);
   free (request);
 }
 
-- 
1.6.4


--=-XBPOfM0g7BgBIfvLZXUv
Content-Disposition: inline; filename="0008-client-Fix-memleak-at-exit.patch"
Content-Type: text/x-patch; name="0008-client-Fix-memleak-at-exit.patch"; charset="ISO-8859-15"
Content-Transfer-Encoding: 7bit



More information about the plymouth mailing list