You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/03/06 14:29:48 UTC
DO NOT REPLY [Bug 6916] New: -
ArenaBlock: deallocate called with 0 instead of m_blockSize
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6916>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6916
ArenaBlock: deallocate called with 0 instead of m_blockSize
Summary: ArenaBlock: deallocate called with 0 instead of
m_blockSize
Product: XalanC
Version: 1.3.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: XalanC
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: tommy.andreasen@radiometer.dk
In the call to m_allocator.deallocate in ArenaBlock::~ArenaBlock() in file ArenaBlock.hpp,
the call to deallocate should have m_blockSize as the second parameter. Now it is always called
with 0.
virtual
~ArenaBlock()
{
destroyAll();
// Release the
memory...
// m_allocator.deallocate(m_objectBlock, 0); //
error
m_allocator.deallocate(m_objectBlock, m_blockSize);
}
If compiling with
MSVC6 and STLport 4.5, this error causes the program to go in a indefinite loop when it shuts
down.