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

Dave Airlie airlied at gmail.com
Thu May 9 17:17:39 PDT 2013


On Fri, May 10, 2013 at 9:44 AM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> ==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>

Reviewed-by: Dave Airlie <airlied at redhat.com>

> ---
> 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
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list