Mesa (master): winsys/xlib: Fix memory leak.
Vinson Lee
vlee at kemper.freedesktop.org
Thu Mar 11 08:20:52 UTC 2010
Module: Mesa
Branch: master
Commit: aa311ae61680f0fc300e33e8955c6c58cafd5fb4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=aa311ae61680f0fc300e33e8955c6c58cafd5fb4
Author: Vinson Lee <vlee at vmware.com>
Date: Thu Mar 11 00:18:09 2010 -0800
winsys/xlib: Fix memory leak.
Memory for xm_dt was allocated twice.
---
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 29c6427..cecfa4a 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);
More information about the mesa-commit
mailing list