winsys/svga: Fix a memory leak
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 26 Nov 2018 18:05:47 +0000 (19:05 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 29 Nov 2018 09:42:06 +0000 (10:42 +0100)
The ioctl.cap_3d member was never freed.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c

index 739e4ea131fb0959d5345144cda4023f26293e10..0ec8c1abe11c3ffba2e0e88ccb18cbef6a3623b5 100644 (file)
@@ -1198,4 +1198,6 @@ void
 vmw_ioctl_cleanup(struct vmw_winsys_screen *vws)
 {
    VMW_FUNC;
+
+   free(vws->ioctl.cap_3d);
 }