2011-02-28 Michael Snyder <msnyder@vmware.com>

* opencl-lang.c (lval_func_free_closure): Fix use-after-free.
This commit is contained in:
Michael Snyder 2011-02-28 18:31:36 +00:00
parent 007d618909
commit c05202a107
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2011-02-28 Michael Snyder <msnyder@vmware.com>
* opencl-lang.c (lval_func_free_closure): Fix use-after-free.
2011-02-28 Tom Tromey <tromey@redhat.com>
* psymtab.c (expand_partial_symbol_tables): Use

View File

@ -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. */
}
}