mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
radv: fix memory leak when restoring from cache
Fixes: 726a31df70 ("radv: Add the concept of radv shader binaries.")
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
e03259974e
commit
ae4ccb67be
1 changed files with 1 additions and 0 deletions
|
|
@ -309,6 +309,7 @@ radv_create_shader_variants_from_pipeline_cache(struct radv_device *device,
|
|||
p += entry->binary_sizes[i];
|
||||
|
||||
entry->variants[i] = radv_shader_variant_create(device, binary);
|
||||
free(binary);
|
||||
} else if (entry->binary_sizes[i]) {
|
||||
p += entry->binary_sizes[i];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue