diff options
author | Tiago Vignatti <tiago.vignatti@nokia.com> | 2011-03-29 16:54:14 +0300 |
---|---|---|
committer | Tiago Vignatti <tiago.vignatti@nokia.com> | 2011-04-04 15:47:58 +0300 |
commit | 0b288c8738a97cf6aa3f36aa5c05e7ac2a5cbca8 (patch) | |
tree | df9867c8d7bd4dddeb31bcd7d638ba6ecfeac0d3 /dix/extension.c | |
parent | 90e03ab026cd8ffdc6202e6b8bae119717ee8528 (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/extension.c')
-rw-r--r-- | dix/extension.c | 5 |
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; } |