Fix race-condition in process result (memory leak), fix infinite loop in donors_list

This commit is contained in:
2024-11-11 17:35:49 +00:00
parent 7778e05aa4
commit 18c884234d
3 changed files with 7 additions and 2 deletions

View File

@@ -341,6 +341,7 @@ lock_release (struct lock *lock)
released, transfer the remaining orphaned donors to its donor list. */
if (max_donor != NULL)
{
list_remove (&max_donor->donor_elem);
while (!list_empty (&orphan_list))
list_push_back (&max_donor->donors_list, list_pop_front (&orphan_list));
}