diff options
author | Vinson Lee <[email protected]> | 2013-02-23 17:19:24 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2013-02-26 20:03:11 -0800 |
commit | f987d23b28491bd7b0552bd9daffa53a8e073c71 (patch) | |
tree | 735e022ab76a6a85a85fc3811e6a276f8ffb378c /src | |
parent | f88ed1658c666a36a6b42886ee0609858a8fb86e (diff) |
radeonsi: Fix memory leak in si_set_constant_buffer.
Fixes resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 769ba0cc797..a395ec4f2d1 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -2523,6 +2523,7 @@ static void si_set_constant_buffer(struct pipe_context *ctx, uint shader, uint i default: R600_ERR("unsupported %d\n", shader); + FREE(pm4); } if (cb->buffer != &rbuffer->b.b) |