[Mesa-dev] [PATCH] winsys/svga: Fix a memory leak
Thomas Hellstrom
thellstrom at vmware.com
Wed Nov 28 08:14:04 UTC 2018
The ioctl.cap_3d member was never freed.
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Sinclair Yeh <syeh at vmware.com>
---
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
index 739e4ea131f..0ec8c1abe11 100644
--- a/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
+++ b/src/gallium/winsys/svga/drm/vmw_screen_ioctl.c
@@ -1198,4 +1198,6 @@ void
vmw_ioctl_cleanup(struct vmw_winsys_screen *vws)
{
VMW_FUNC;
+
+ free(vws->ioctl.cap_3d);
}
--
2.19.0.rc1
More information about the mesa-dev
mailing list