mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-29 04:10:53 +02:00
fix memleak in slang_operation_insert()
This commit is contained in:
parent
4b7c6fc5a6
commit
f2346498aa
1 changed files with 2 additions and 0 deletions
|
|
@ -205,6 +205,8 @@ slang_operation_insert(GLuint *numChildren, slang_operation **children,
|
|||
*children = NULL;
|
||||
return NULL;
|
||||
}
|
||||
if (*children)
|
||||
_mesa_free(*children);
|
||||
*children = ops;
|
||||
(*numChildren)++;
|
||||
return newOp;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue