summaryrefslogtreecommitdiff
path: root/dix
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 17:27:12 +0300
commitaac8fb98fdd4f1100b6f48e7d35b765b99819cb9 (patch)
tree8c4d536fe16d0e7e69e5b1288de3da6085854c7e /dix
parenta50fc25bf34adcf4ad1db8b62aa6eee6ccbdd68c (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>
Diffstat (limited to 'dix')
-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;
}