From: Vinson Lee Date: Thu, 11 Mar 2010 08:18:09 +0000 (-0800) Subject: winsys/xlib: Fix memory leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aa311ae;p=mesa.git winsys/xlib: Fix memory leak. Memory for xm_dt was allocated twice. --- diff --git a/src/gallium/winsys/xlib/xlib_sw_winsys.c b/src/gallium/winsys/xlib/xlib_sw_winsys.c index 29c642706a4..cecfa4a53d4 100644 --- a/src/gallium/winsys/xlib/xlib_sw_winsys.c +++ b/src/gallium/winsys/xlib/xlib_sw_winsys.c @@ -363,7 +363,7 @@ xm_displaytarget_create(struct sw_winsys *winsys, unsigned alignment, unsigned *stride) { - struct xm_displaytarget *xm_dt = CALLOC_STRUCT(xm_displaytarget); + struct xm_displaytarget *xm_dt; unsigned nblocksy, size; xm_dt = CALLOC_STRUCT(xm_displaytarget);