summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/state_trackers/dri/drm/dri1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri1.c b/src/gallium/state_trackers/dri/drm/dri1.c
index 9b5842ba2bf..cca7cd8f0c3 100644
--- a/src/gallium/state_trackers/dri/drm/dri1.c
+++ b/src/gallium/state_trackers/dri/drm/dri1.c
@@ -514,6 +514,8 @@ dri1_init_screen(__DRIscreen * sPriv)
return configs;
fail:
+ if (configs)
+ FREE(configs);
dri_destroy_screen_helper(screen);
FREE(screen);
return NULL;