diff options
author | Vinson Lee <[email protected]> | 2013-01-31 23:41:14 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-01 22:50:34 -0800 |
commit | 080e91aa07aaf2cc3ebb98abcb77eda868167687 (patch) | |
tree | b37a26fbe6d4f4f483fddb5570d3d24031209753 /src | |
parent | cea341fce84a885643e615827a86de751849f8da (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')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 1 |
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; } |