Module: Mesa Branch: master Commit: f987d23b28491bd7b0552bd9daffa53a8e073c71 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=f987d23b28491bd7b0552bd9daffa53a8e073c71
Author: Vinson Lee <[email protected]> Date: Sat Feb 23 17:19:24 2013 -0800 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]> --- 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 769ba0c..a395ec4 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) _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
