From 7221b49fea28eea474cc0e4ebf077cd68e88002e Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Fri, 3 Mar 2017 15:45:51 +0300 Subject: [PATCH] Suppress C6011 code analysis false positive warning --- tinyxml2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index d3adddc..09d7682 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1838,6 +1838,7 @@ XMLAttribute* XMLElement::CreateAttribute() { TIXMLASSERT( sizeof( XMLAttribute ) == _document->_attributePool.ItemSize() ); XMLAttribute* attrib = new (_document->_attributePool.Alloc() ) XMLAttribute(); + TIXMLASSERT( attrib ); attrib->_memPool = &_document->_attributePool; attrib->_memPool->SetTracked(); return attrib;