summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/util/utl_identifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/util/utl_identifier.cpp')
-rw-r--r--TAO/TAO_IDL/util/utl_identifier.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/util/utl_identifier.cpp b/TAO/TAO_IDL/util/utl_identifier.cpp
index 458fcc20c5c..750810be112 100644
--- a/TAO/TAO_IDL/util/utl_identifier.cpp
+++ b/TAO/TAO_IDL/util/utl_identifier.cpp
@@ -83,7 +83,11 @@ Identifier::Identifier (char *s, long, long, long)
Identifier::~Identifier ()
{
- delete pv_string;
+ if (this->pv_string != 0)
+ {
+ // The string was allocated using strdup, which uses malloc.
+ ACE_OS::free (this->pv_string);
+ }
}
// Operations