mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 00:20:11 +01:00
mesa: Fix allocation size of extension_indices array.
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
95368f25c1
commit
8800a798d1
1 changed files with 1 additions and 1 deletions
|
|
@ -908,7 +908,7 @@ _mesa_make_extension_string(struct gl_context *ctx)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
extension_indices = malloc(count * sizeof extension_indices);
|
||||
extension_indices = malloc(count * sizeof(extension_index));
|
||||
if (extension_indices == NULL) {
|
||||
free(exts);
|
||||
free(extra_extensions);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue