summaryrefslogtreecommitdiff
path: root/ACE/ace/Service_Gestalt.cpp
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-09-23 12:37:59 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-09-23 12:37:59 +0000
commitf69db29a8071c8c6a0f4742ab18969eeebd23192 (patch)
tree76cfcfb2b015a82e07df7770079660be3348232f /ACE/ace/Service_Gestalt.cpp
parent81d2cec351b4613a52995c8991f532951d98cbca (diff)
downloadATCD-f69db29a8071c8c6a0f4742ab18969eeebd23192.tar.gz
Thu Sep 23 12:32:05 UTC 2010 Vladimir Zykov <vladimir.zykov@prismtech.com>
* ace/Service_Gestalt.cpp: Fixed memory leak. Previously it could happen that svc_queue_ was allocated during processing of arguments but was not freed if application didn't call process_commandline_directives(). * tests/Network_Adapters_Test.cpp: Removed non-ASCII character from the comments.
Diffstat (limited to 'ACE/ace/Service_Gestalt.cpp')
-rw-r--r--ACE/ace/Service_Gestalt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ACE/ace/Service_Gestalt.cpp b/ACE/ace/Service_Gestalt.cpp
index f3799df33d5..9723e91504d 100644
--- a/ACE/ace/Service_Gestalt.cpp
+++ b/ACE/ace/Service_Gestalt.cpp
@@ -201,6 +201,9 @@ ACE_Service_Gestalt::~ACE_Service_Gestalt (void)
delete this->svc_conf_file_queue_;
this->svc_conf_file_queue_ = 0;
+
+ delete this->svc_queue_;
+ this->svc_queue_ = 0;
}
ACE_Service_Gestalt::ACE_Service_Gestalt (size_t size,