summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/svga
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2018-11-26 19:05:47 +0100
committerThomas Hellstrom <[email protected]>2018-11-29 10:42:06 +0100
commit058f85d41cbe3534b1a06d321fab9afb8fbadfc0 (patch)
tree9b0db627669adec678789de80c4c01ffefd71fe7 /src/gallium/winsys/svga
parent7fce3ca3759e2e156e2e3bf1bcc4ee378dc7fa2d (diff)
winsys/svga: Fix a memory leak
The ioctl.cap_3d member was never freed. Cc: [email protected] Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Sinclair Yeh <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/winsys/svga')
-rw-r--r--src/gallium/winsys/svga/drm/vmw_screen_ioctl.c2
1 files changed, 2 insertions, 0 deletions
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);
}