summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Vignatti <tiago.vignatti@nokia.com>2011-03-29 16:54:14 +0300
committerTiago Vignatti <tiago.vignatti@nokia.com>2011-04-04 15:47:58 +0300
commit0b288c8738a97cf6aa3f36aa5c05e7ac2a5cbca8 (patch)
treedf9867c8d7bd4dddeb31bcd7d638ba6ecfeac0d3
parent90e03ab026cd8ffdc6202e6b8bae119717ee8528 (diff)
dix: fix memory leak in ProcListExtensions
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Nicolas Peninguy <nico@lostgeeks.org>
-rw-r--r--dix/extension.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dix/extension.c b/dix/extension.c
index 6540b64b0..c7bbac5ff 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;
}