mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:43:03 +01:00
Fix memory corruption issue in SuperServer builds noted by Valgrind
This commit is contained in:
parent
ec8f7daeb4
commit
478a252e70
@ -157,6 +157,13 @@ public:
|
||||
if (toDelete == 0)
|
||||
return;
|
||||
JrdMemoryPool *perm = toDelete->dbb_permanent;
|
||||
#ifdef SUPERSERVER
|
||||
// Memory pool destruction below decrements memory statistics for
|
||||
// SuperServer situated in database block we are about to deallocate
|
||||
// right now.
|
||||
Firebird::MemoryStats temp_stats;
|
||||
perm->setStatsGroup(temp_stats);
|
||||
#endif
|
||||
delete toDelete;
|
||||
JrdMemoryPool::noDbbDeletePool(perm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user