mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
fix potential leak in r600_context_init
This commit is contained in:
parent
9d41e5ee46
commit
4102c7c7e2
1 changed files with 2 additions and 1 deletions
|
|
@ -637,7 +637,8 @@ int r600_context_init(struct r600_context *ctx, struct radeon *radeon)
|
|||
ctx->range[i].end_offset = ((i + 1) << ctx->hash_shift) - 1;
|
||||
ctx->range[i].blocks = calloc(1 << ctx->hash_shift, sizeof(void*));
|
||||
if (ctx->range[i].blocks == NULL) {
|
||||
return -ENOMEM;
|
||||
r = -ENOMEM;
|
||||
goto out_err;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue