mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 05:48:20 +08:00
2011-02-28 Michael Snyder <msnyder@vmware.com>
* opencl-lang.c (lval_func_free_closure): Fix use-after-free.
This commit is contained in:
@ -348,9 +348,9 @@ lval_func_free_closure (struct value *v)
|
||||
|
||||
if (c->refc == 0)
|
||||
{
|
||||
value_free (c->val); /* Decrement the reference counter of the value. */
|
||||
xfree (c->indices);
|
||||
xfree (c);
|
||||
value_free (c->val); /* Decrement the reference counter of the value. */
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user