]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Fix leak in ply-boot-server
authorRay Strode <rstrode@redhat.com>
Tue, 24 Feb 2009 18:37:02 +0000 (13:37 -0500)
committerRay Strode <rstrode@redhat.com>
Tue, 24 Feb 2009 18:38:11 +0000 (13:38 -0500)
This commit fixes a memory leak
in an error path of ply_boot_connection_read_request.

src/ply-boot-server.c

index 77115e5005d8d98b7e446bc01be1abbf8bfe86f0..f755ea07218c4cf02ed3b2902afefc0d4c5047f2 100644 (file)
@@ -204,6 +204,7 @@ ply_boot_connection_read_request (ply_boot_connection_t  *connection,
 
       if (!ply_read (connection->fd, *argument, argument_size))
         {
+          free (*argument);
           free (*command);
           return false;
         }