OSDN Git Service

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 22:59:44 +0000 (16:59 -0600)
This would only be hit if we got and invalid index_size.

src/gallium/auxiliary/draw/draw_pt_vcache.c

index 1a0527b..d3f179c 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;
          }
       }