diff options
author | Vinson Lee <[email protected]> | 2010-03-11 00:18:09 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-03-11 00:18:09 -0800 |
commit | aa311ae61680f0fc300e33e8955c6c58cafd5fb4 (patch) | |
tree | edd9b178964aac0b2949af606af1581678f7805f /src | |
parent | 8f7e06ddf646d6ec001a19a4b571595e50ba28b4 (diff) |
winsys/xlib: Fix memory leak.
Memory for xm_dt was allocated twice.
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/winsys/xlib/xlib_sw_winsys.c | 2 |
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 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); |