pma: clear pending_flist after completion of _pending_flist_merge

use-after-free was responsible for crash
This commit is contained in:
barter-simsum 2024-03-12 19:16:12 -04:00
parent f68a95e1f2
commit 22fb321d05

View File

@ -1134,6 +1134,7 @@ _pending_flist_merge(BT_state *state)
src_head = src_head->next;
free(prev);
}
state->pending_flist = 0;
}