summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-01-31 23:41:14 -0800
committerVinson Lee <[email protected]>2013-02-01 22:50:34 -0800
commit080e91aa07aaf2cc3ebb98abcb77eda868167687 (patch)
treeb37a26fbe6d4f4f483fddb5570d3d24031209753 /src/egl
parentcea341fce84a885643e615827a86de751849f8da (diff)
egl/dri2: Fix memory leak.
Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/egl_dri2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c
index d10bdf0b733..0ffbc68649c 100644
--- a/src/egl/drivers/dri2/egl_dri2.c
+++ b/src/egl/drivers/dri2/egl_dri2.c
@@ -768,6 +768,7 @@ dri2_create_context(_EGLDriver *drv, _EGLDisplay *disp, _EGLConfig *conf,
break;
default:
_eglError(EGL_BAD_PARAMETER, "eglCreateContext");
+ free(dri2_ctx);
return NULL;
}