2011-02-28 Michael Snyder <msnyder@vmware.com>
* opencl-lang.c (lval_func_free_closure): Fix use-after-free.
This commit is contained in:
parent
007d618909
commit
c05202a107
|
@ -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>
|
2011-02-28 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
* psymtab.c (expand_partial_symbol_tables): Use
|
* psymtab.c (expand_partial_symbol_tables): Use
|
||||||
|
|
|
@ -348,9 +348,9 @@ lval_func_free_closure (struct value *v)
|
||||||
|
|
||||||
if (c->refc == 0)
|
if (c->refc == 0)
|
||||||
{
|
{
|
||||||
|
value_free (c->val); /* Decrement the reference counter of the value. */
|
||||||
xfree (c->indices);
|
xfree (c->indices);
|
||||||
xfree (c);
|
xfree (c);
|
||||||
value_free (c->val); /* Decrement the reference counter of the value. */
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue