8
0
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:
skidder 2004-08-17 02:02:21 +00:00
parent ec8f7daeb4
commit 478a252e70

View File

@ -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);
}