Fixed memory leak: release extracted xml tag if invalid.

git-svn-id: http://yate.null.ro/svn/yate/trunk@4048 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2011-01-20 14:48:22 +00:00
parent 2476dc9112
commit 852f710b73
1 changed files with 1 additions and 0 deletions

View File

@ -579,6 +579,7 @@ bool XmlSaxParser::parseElement()
// Names starting with 'xml' (case insensitive) are reserved
if (name->startsWith("xml",false,true)) {
Debug(this,DebugNote,"Element tag starts with 'xml' [%p]",this);
TelEngine::destruct(name);
return setError(ReadElementName);
}
#endif