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:
parent
2476dc9112
commit
852f710b73
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue