[Box Backup-commit] COMMIT r2346 - box/trunk/lib/common
boxbackup-dev at boxbackup.org
boxbackup-dev at boxbackup.org
Sat Oct 11 18:44:29 BST 2008
Author: chris
Date: 2008-10-11 18:44:28 +0100 (Sat, 11 Oct 2008)
New Revision: 2346
Modified:
box/trunk/lib/common/DebugMemLeakFinder.cpp
Log:
Fix spurious memory leak warnings on Solaris when using Sun Studio
compiler.
Modified: box/trunk/lib/common/DebugMemLeakFinder.cpp
===================================================================
--- box/trunk/lib/common/DebugMemLeakFinder.cpp 2008-10-11 17:43:46 UTC (rev 2345)
+++ box/trunk/lib/common/DebugMemLeakFinder.cpp 2008-10-11 17:44:28 UTC (rev 2346)
@@ -75,6 +75,13 @@
void memleakfinder_init()
{
ASSERT(!memleakfinder_initialised);
+
+ {
+ // allocates a permanent buffer on Solaris.
+ // not a leak?
+ std::ostringstream oss;
+ }
+
memleakfinder_initialised = true;
}
More information about the Boxbackup-commit
mailing list