summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2009-10-27 09:13:27 -0600
committerBrian Paul <[email protected]>2009-10-27 09:14:29 -0600
commit42732611d3bd3c428b376089a58c40537bbfe180 (patch)
tree5f33b5df16306b814bbd985978abcbab34292763 /src/gallium/auxiliary
parent0a4763184971662b23980b533b78d34600ecf06d (diff)
draw: Fix memory leak.
This would only be hit if we got and invalid index_size.
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/draw/draw_pt_vcache.c2
1 files changed, 2 insertions, 0 deletions
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;
}
}