From 080e91aa07aaf2cc3ebb98abcb77eda868167687 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Thu, 31 Jan 2013 23:41:14 -0800 Subject: egl/dri2: Fix memory leak. Fixes resource leak defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: Brian Paul --- src/egl/drivers/dri2/egl_dri2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3