[Mesa-stable] [PATCH] st/dri: use the FREE wrapper for the dri screen

Emil Velikov emil.l.velikov at gmail.com
Thu Aug 30 10:12:11 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

The memory is allocated with the uppercase wrapper. Tear down should
match that.

Cc: mesa-stable at lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/gallium/state_trackers/dri/dri_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index 3e4de59a433..98b02678c81 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -484,7 +484,7 @@ dri_destroy_screen(__DRIscreen * sPriv)
 
    pipe_loader_release(&screen->dev, 1);
 
-   free(screen);
+   FREE(screen);
    sPriv->driverPrivate = NULL;
    sPriv->extensions = NULL;
 }
-- 
2.18.0



More information about the mesa-stable mailing list