Skip to content

Commit

Permalink
SAX2XMLReaderImpl::error(): use exception memory manager, otherwise r…
Browse files Browse the repository at this point in the history
…egular memory manager might fail to fully allocate the strings in the exception and cause memory leaks
  • Loading branch information
rouault committed Sep 15, 2021
1 parent 60fd4e2 commit 328f5be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xercesc/parsers/SAX2XMLReaderImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1229,7 +1229,7 @@ void SAX2XMLReaderImpl::error( const unsigned int
, systemId
, lineNum
, colNum
, fMemoryManager
, fMemoryManager->getExceptionMemoryManager()
);

if (!fErrorHandler)
Expand Down

0 comments on commit 328f5be

Please sign in to comment.