The original allocations use regs->regs as the context, so talloc will
happily ignore the context given here. Change it to match to clarify
that it isn't changing.
if (reg1->conflict_list_size == reg1->num_conflicts) {
reg1->conflict_list_size *= 2;
- reg1->conflict_list = talloc_realloc(regs,
+ reg1->conflict_list = talloc_realloc(regs->regs,
reg1->conflict_list,
unsigned int,
reg1->conflict_list_size);
{
struct ra_class *class;
- regs->classes = talloc_realloc(regs, regs->classes,
+ regs->classes = talloc_realloc(regs->regs, regs->classes,
struct ra_class *,
regs->class_count + 1);