summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-21 21:10:30 +0000
committerparsons <parsons@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-05-21 21:10:30 +0000
commitf40d042d7b2bb322f639b320d348ed39ffcc00a0 (patch)
tree7878ad42f0080deba91de5b56c4d2c603d329b54
parent2af5918346f0454674d0bce7f02a3e6e2b70e3ae (diff)
downloadATCD-f40d042d7b2bb322f639b320d348ed39ffcc00a0.tar.gz
Fixed indentations and fixed memory leak related to gen_string().
-rw-r--r--TAO/tests/Param_Test/any.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/TAO/tests/Param_Test/any.cpp b/TAO/tests/Param_Test/any.cpp
index 537c6c89e4a..600113401c2 100644
--- a/TAO/tests/Param_Test/any.cpp
+++ b/TAO/tests/Param_Test/any.cpp
@@ -108,8 +108,8 @@ Test_Any::reset_parameters (void)
"Param_Test: ANY_SHORT subtest\n"));
CORBA::Short s;
s = gen->gen_short ();
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting short = %d\n", s));
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "setting short = %d\n", s));
this->in_ <<= s;
this->inout_ <<= s;
}
@@ -121,10 +121,11 @@ Test_Any::reset_parameters (void)
ACE_DEBUG ((LM_DEBUG,
"Param_Test: ANY_STRING subtest\n"));
char *str = gen->gen_string ();
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG, "setting string = %s\n", str));
+ if (TAO_debug_level > 0)
+ ACE_DEBUG ((LM_DEBUG, "setting string = %s\n", str));
this->in_ <<= str;
this->inout_ <<= str;
+ CORBA::string_free (str);
}
break;