From: Vinson Lee Date: Wed, 28 Oct 2009 19:09:44 +0000 (-0600) Subject: intel: Fix memory leak in case of renderbuffer bad format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c0a61c8442af3cfa810098d34bf6a21d11a5d720;p=mesa.git intel: Fix memory leak in case of renderbuffer bad format Signed-off-by: Brian Paul --- diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index cf007d5b62b..a49868bfef8 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -385,6 +385,7 @@ intel_create_renderbuffer(GLenum intFormat) default: _mesa_problem(NULL, "Unexpected intFormat in intel_create_renderbuffer"); + _mesa_free(irb); return NULL; }