summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-28 23:29:40 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-28 23:29:40 +0000
commitc40e56bdc0a950b40d7245c3870645b9971475f6 (patch)
tree496111e23b02e36f2699cc300c831acbfca5dd0c
parent934ae719eb9a86b4d397d3a5f022747a21894c58 (diff)
downloadATCD-c40e56bdc0a950b40d7245c3870645b9971475f6.tar.gz
Fixed memory leaks.
-rw-r--r--TAO/tests/Param_Test/bd_string.cpp3
-rw-r--r--TAO/tests/Param_Test/ub_string.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/TAO/tests/Param_Test/bd_string.cpp b/TAO/tests/Param_Test/bd_string.cpp
index 10456150be1..3df924359f3 100644
--- a/TAO/tests/Param_Test/bd_string.cpp
+++ b/TAO/tests/Param_Test/bd_string.cpp
@@ -88,6 +88,9 @@ int
Test_Bounded_String::reset_parameters (void)
{
// release any previously occupied values
+ CORBA::string_free (this->inout_);
+ CORBA::string_free (this->out_);
+ CORBA::string_free (this->ret_);
this->inout_ = 0;
this->out_ = 0;
this->ret_ = 0;
diff --git a/TAO/tests/Param_Test/ub_string.cpp b/TAO/tests/Param_Test/ub_string.cpp
index cb31381a237..ad9e101c020 100644
--- a/TAO/tests/Param_Test/ub_string.cpp
+++ b/TAO/tests/Param_Test/ub_string.cpp
@@ -87,6 +87,9 @@ int
Test_Unbounded_String::reset_parameters (void)
{
// release any previously occupied values
+ CORBA::string_free (this->inout_);
+ CORBA::string_free (this->out_);
+ CORBA::string_free (this->ret_);
this->inout_ = 0;
this->out_ = 0;
this->ret_ = 0;