diff options
author | Anthony Neal <aneal@zeroc.com> | 2002-01-21 18:37:38 +0000 |
---|---|---|
committer | Anthony Neal <aneal@zeroc.com> | 2002-01-21 18:37:38 +0000 |
commit | c0e80d6d1a75b237f3d47250b673b006626941c1 (patch) | |
tree | a9122f802236ded98e8801cef409014c5efc1eb7 /cpp/src | |
parent | Update of SUDP (Secure UDP) related code. SUDP is still not active, but (diff) | |
download | ice-c0e80d6d1a75b237f3d47250b673b006626941c1.tar.bz2 ice-c0e80d6d1a75b237f3d47250b673b006626941c1.tar.xz ice-c0e80d6d1a75b237f3d47250b673b006626941c1.zip |
Fixed memory leak in SslConfig.cpp.
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/Ice/SslConfig.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/cpp/src/Ice/SslConfig.cpp b/cpp/src/Ice/SslConfig.cpp index 95947090cce..20d9c7159cf 100644 --- a/cpp/src/Ice/SslConfig.cpp +++ b/cpp/src/Ice/SslConfig.cpp @@ -81,13 +81,13 @@ IceSecurity::Ssl::Parser::process() // Create our parser, then attach an error handler to the parser. // The parser will call back to methods of the ErrorHandler if it // discovers errors during the course of parsing the XML document. - DOMParser* parser = new DOMParser; - parser->setValidationScheme(DOMParser::Val_Auto); - parser->setDoNamespaces(false); - parser->setDoSchema(false); - parser->setCreateEntityReferenceNodes(false); - parser->setToCreateXMLDeclTypeNode(true); - parser->setErrorHandler(errReporter); + DOMParser parser; + parser.setValidationScheme(DOMParser::Val_Auto); + parser.setDoNamespaces(false); + parser.setDoSchema(false); + parser.setCreateEntityReferenceNodes(false); + parser.setToCreateXMLDeclTypeNode(true); + parser.setErrorHandler(errReporter); try { @@ -108,7 +108,7 @@ IceSecurity::Ssl::Parser::process() ArrayJanitor<XMLCh> janFile(xmlConfigFile); LocalFileInputSource configSource(xmlConfigPath, xmlConfigFile); - parser->parse(configSource); + parser.parse(configSource); } else { @@ -116,15 +116,15 @@ IceSecurity::Ssl::Parser::process() ArrayJanitor<XMLCh> janFile(xmlConfigFile); LocalFileInputSource configSource(xmlConfigFile); - parser->parse(configSource); + parser.parse(configSource); } - errorCount = parser->getErrorCount(); + errorCount = parser.getErrorCount(); if (errorCount == 0) { // Get the root of the parse tree. - _root = parser->getDocument(); + _root = parser.getDocument(); } } catch (const XMLException& e) |