add global locks to FreeMemoryLazyFree
Former-commit-id: d850ce20219a3e29a6a816ebfa0d714963d6a88b
This commit is contained in:
parent
ece7a0beae
commit
1262d623a3
@ -470,11 +470,13 @@ public:
|
||||
FreeMemoryLazyFree(FreeMemoryLazyFree&&) = default;
|
||||
|
||||
~FreeMemoryLazyFree() {
|
||||
aeAcquireLock();
|
||||
for (auto &pair : vecdictvecde) {
|
||||
for (auto de : pair.second) {
|
||||
dictFreeUnlinkedEntry(pair.first, de);
|
||||
}
|
||||
}
|
||||
aeReleaseLock();
|
||||
--s_clazyFreesInProgress;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user