draw: Fix memory leak.
authorVinson Lee <vlee@vmware.com>
Tue, 27 Oct 2009 15:13:27 +0000 (09:13 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 27 Oct 2009 15:14:29 +0000 (09:14 -0600)
This would only be hit if we got and invalid index_size.

src/gallium/auxiliary/draw/draw_pt_vcache.c

index 1a0527be63a8380ea9e5962fd7a0d9cf9c71e302..d3f179ced18bb2431d912048825fad787b1f2914 100644 (file)
@@ -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;
          }
       }