Make sure that sync level vector is emptied.
This commit is contained in:
parent
99a2c061d7
commit
c14d9c21f0
@ -1454,6 +1454,7 @@ sync_thread_level_arrays_free(void)
|
||||
|
||||
/* If this slot was allocated then free the slot memory too. */
|
||||
if (slot->levels != NULL) {
|
||||
slot->levels->elems.erase(slot->levels->elems.begin(),slot->levels->elems.end());
|
||||
free(slot->levels);
|
||||
slot->levels = NULL;
|
||||
}
|
||||
|
@ -1580,6 +1580,7 @@ sync_thread_level_arrays_free(void)
|
||||
|
||||
/* If this slot was allocated then free the slot memory too. */
|
||||
if (slot->levels != NULL) {
|
||||
slot->levels->elems.erase(slot->levels->elems.begin(),slot->levels->elems.end());
|
||||
free(slot->levels);
|
||||
slot->levels = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user