mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-20 05:40:39 +02:00
r600g: Fix memory leak in r600_shader_select.
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reported-by: Michel Dänzer <michel@daenzer.net> Reviewed-by: Marek Olšák <maraeo@gmail.com>
This commit is contained in:
parent
66c3cd0be3
commit
b92984b2fa
1 changed files with 1 additions and 0 deletions
|
|
@ -744,6 +744,7 @@ static int r600_shader_select(struct pipe_context *ctx,
|
|||
R600_ERR("Failed to build shader variant (type=%u) %d\n",
|
||||
sel->type, r);
|
||||
sel->current = NULL;
|
||||
FREE(shader);
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue