From f40d042d7b2bb322f639b320d348ed39ffcc00a0 Mon Sep 17 00:00:00 2001 From: parsons Date: Fri, 21 May 1999 21:10:30 +0000 Subject: Fixed indentations and fixed memory leak related to gen_string(). --- TAO/tests/Param_Test/any.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'TAO/tests/Param_Test/any.cpp') 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; -- cgit v1.2.1