From: Vinson Lee Date: Tue, 27 Oct 2009 15:13:27 +0000 (-0600) Subject: draw: Fix memory leak. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=42732611d3bd3c428b376089a58c40537bbfe180;p=mesa.git draw: Fix memory leak. This would only be hit if we got and invalid index_size. --- diff --git a/src/gallium/auxiliary/draw/draw_pt_vcache.c b/src/gallium/auxiliary/draw/draw_pt_vcache.c index 1a0527be63a..d3f179ced18 100644 --- a/src/gallium/auxiliary/draw/draw_pt_vcache.c +++ b/src/gallium/auxiliary/draw/draw_pt_vcache.c @@ -394,6 +394,7 @@ vcache_check_run( struct draw_pt_front_end *frontend, default: assert(0); + FREE(storage); return; } } @@ -422,6 +423,7 @@ vcache_check_run( struct draw_pt_front_end *frontend, default: assert(0); + FREE(storage); return; } }