Mesa (staging/18.3): winsys/svga: Fix a memory leak

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Dec 3 18:33:05 UTC 2018


Module: Mesa
Branch: staging/18.3
Commit: 56f90f6213ecefa04160fec6b2d7e3c552ad9cb9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=56f90f6213ecefa04160fec6b2d7e3c552ad9cb9

Author: Thomas Hellstrom <thellstrom at vmware.com>
Date:   Mon Nov 26 19:05:47 2018 +0100

winsys/svga: Fix a memory leak

The ioctl.cap_3d member was never freed.

Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
Reviewed-by: Sinclair Yeh <syeh at vmware.com>
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
(cherry picked from commit 058f85d41cbe3534b1a06d321fab9afb8fbadfc0)

---

 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 739e4ea131..0ec8c1abe1 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);
 }




More information about the mesa-commit mailing list