diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-04-11 18:21:14 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-04-11 18:21:14 +0000 |
commit | 1dffece376930b1a2ecf88a5de6247f5ddb2d61f (patch) | |
tree | f3c27ca16cccea62e0076704c3a3763d3f2e37d5 /ACE/ACEXML/apps/svcconf | |
parent | 9e9cd3ea30de94a87119624011567380320dda6f (diff) | |
download | ATCD-1dffece376930b1a2ecf88a5de6247f5ddb2d61f.tar.gz |
ChangeLogTag: Wed Apr 11 18:16:29 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'ACE/ACEXML/apps/svcconf')
-rw-r--r-- | ACE/ACEXML/apps/svcconf/Svcconf_Handler.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ACE/ACEXML/apps/svcconf/Svcconf_Handler.cpp b/ACE/ACEXML/apps/svcconf/Svcconf_Handler.cpp index a0986aef0d2..3a02583759f 100644 --- a/ACE/ACEXML/apps/svcconf/Svcconf_Handler.cpp +++ b/ACE/ACEXML/apps/svcconf/Svcconf_Handler.cpp @@ -121,6 +121,9 @@ ACEXML_Svcconf_Handler::endElement (const ACEXML_Char *, } else { + // We will not retain this stream + delete stp; + // build the error message ACE_CString msg (ACE_TEXT ("Expecting Stream type in stream header")); msg += ACE_CString (ACE_TEXT (" for entity '")); @@ -187,6 +190,10 @@ ACEXML_Svcconf_Handler::endElement (const ACEXML_Char *, if (ACE_Service_Config::initialize (stype, active_info->init_params ()) == -1) { + // If it did not initialize correctly, the + // ACE_Service_Config doesn't own this object + delete stype; + // build the error message ACE_CString msg (ACE_TEXT ("Failed to initialize dynamic service")); msg += ACE_CString (ACE_TEXT (" for entity '")); |