[PATCH] dix: reset the OsBuffers after killing all clients

Peter Hutterer peter.hutterer at who-t.net
Thu May 9 16:44:29 PDT 2013


==21860== 24 bytes in 1 blocks are still reachable in loss record 85 of 397
==21860==    at 0x4C2B3F8: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==21860==    by 0x61ED93: AllocateOutputBuffer (io.c:1037)
==21860==    by 0x61E15A: WriteToClient (io.c:764)
==21860==    by 0x457B30: ProcQueryExtension (extension.c:275)
==21860==    by 0x43596B: Dispatch (dispatch.c:432)
==21860==    by 0x425DAB: main (main.c:295)

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
makes the valgrind output a lot less noisy.

 dix/dispatch.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dix/dispatch.c b/dix/dispatch.c
index 20f2414..398c0bf 100644
--- a/dix/dispatch.c
+++ b/dix/dispatch.c
@@ -465,6 +465,7 @@ Dispatch(void)
     free(clientReady);
     dispatchException &= ~DE_RESET;
     SmartScheduleLatencyLimited = 0;
+    ResetOsBuffers();
 }
 
 static int VendorRelease = VENDOR_RELEASE;
-- 
1.8.1.4



More information about the xorg-devel mailing list