Ensure alias operands are properly freed.

This commit is contained in:
Bill Currie 2012-11-07 09:45:28 +09:00
parent 9f409b1ac4
commit 5051c922a5

View file

@ -310,6 +310,8 @@ free_operand (operand_t *op)
debug (0, "free_operand: double free"); debug (0, "free_operand: double free");
return; return;
} }
if (op->op_type == op_alias)
free_operand (op->o.alias);
op->next = free_operands; op->next = free_operands;
free_operands = op; free_operands = op;
} }