Fixed memory leak

This commit is contained in:
Dmitry Stogov 2022-09-15 20:32:20 +03:00
parent b549d98aba
commit a0c9405ae7

View File

@ -1451,6 +1451,7 @@ static ir_live_interval *ir_split_interval_at(ir_ctx *ctx, ir_live_interval *iva
if (pos == p->start) {
prev->next = NULL;
ival->end = prev->end;
ir_mem_free(p);
} else {
p->end = ival->end = pos;
p->next = NULL;