[PATCH 08/10] dix: fix memory leak in ProcListExtensions

Tiago Vignatti tiago.vignatti at nokia.com
Tue Mar 29 08:12:34 PDT 2011


Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
---
 dix/extension.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dix/extension.c b/dix/extension.c
index 6540b64..c7bbac5 100644
--- a/dix/extension.c
+++ b/dix/extension.c
@@ -353,9 +353,8 @@ ProcListExtensions(ClientPtr client)
     }
     WriteReplyToClient(client, sizeof(xListExtensionsReply), &reply);
     if (reply.length)
-    {
         WriteToClient(client, total_length, buffer);
-        free(buffer);
-    }
+
+    free(buffer);
     return Success;
 }
-- 
1.7.0.4



More information about the xorg-devel mailing list