diff options
| author | Vinson Lee <vlee@vmware.com> | 2009-10-27 09:13:27 -0600 | 
|---|---|---|
| committer | Brian Paul <brianp@vmware.com> | 2009-10-27 16:59:44 -0600 | 
| commit | b7ab7d362764bfc646e7d801fdba5c7c79c7c04f (patch) | |
| tree | efb8257801f18d2c0b1125b03c2c8182e560e196 /src | |
| parent | b73c4ad98b74000b7e286ecbd26110dfb40d8bcc (diff) | |
draw: Fix memory leak.
This would only be hit if we got and invalid index_size.
Diffstat (limited to 'src')
| -rw-r--r-- | src/gallium/auxiliary/draw/draw_pt_vcache.c | 2 | 
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 1a0527be63..d3f179ced1 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;           }        } | 
