summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2010-03-11 00:18:09 -0800
committerVinson Lee <vlee@vmware.com>2010-03-11 00:18:09 -0800
commitaa311ae61680f0fc300e33e8955c6c58cafd5fb4 (patch)
treeedd9b178964aac0b2949af606af1581678f7805f
parent8f7e06ddf646d6ec001a19a4b571595e50ba28b4 (diff)
winsys/xlib: Fix memory leak.
Memory for xm_dt was allocated twice.
-rw-r--r--src/gallium/winsys/xlib/xlib_sw_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/xlib/xlib_sw_winsys.c b/src/gallium/winsys/xlib/xlib_sw_winsys.c
index 29c642706a..cecfa4a53d 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);