Destroy spinlock when destroying the semaphore

This commit is contained in:
Ali Mashtizadeh 2023-08-21 18:36:54 -04:00
parent c1b7d47be9
commit e4ca21fa2e

View File

@ -37,6 +37,8 @@ Semaphore_Destroy(Semaphore *sema)
Spinlock_Lock(&semaListLock);
LIST_REMOVE(sema, semaphoreList);
Spinlock_Unlock(&semaListLock);
Spinlock_Destroy(&sema->lock);
}
void