TAO_IDL: Fix Memory Leaks Caused By Annotations
commitd5fdc518fa8ee1bd9c86891b42ce0ad7b32259ff
authorFred Hornsey <hornseyf@objectcomputing.com>
Thu, 31 Jan 2019 22:36:19 +0000 (31 16:36 -0600)
committerFred Hornsey <hornseyf@objectcomputing.com>
Thu, 31 Jan 2019 22:36:19 +0000 (31 16:36 -0600)
tree8ac0df76ba9b9b4e29281c1f644d5ab08097b8d9
parent307761bd15ca8f93be6af30d56a44f80885dddf7
TAO_IDL: Fix Memory Leaks Caused By Annotations

At least as far as Valgrind running annotest_idl is concerned. The
majority of fixes were many missing destroys and deletes. The biggest
change is AST_Annotation_Appls are now stored in a class of that
name and managed using ACE_Bounded_Strong_Ptr because they can be shared
between AST_Decls.
25 files changed:
TAO/TAO_IDL/ast/ast_annotation_appl.cpp
TAO/TAO_IDL/ast/ast_annotation_member.cpp
TAO/TAO_IDL/ast/ast_array.cpp
TAO/TAO_IDL/ast/ast_decl.cpp
TAO/TAO_IDL/ast/ast_expression.cpp
TAO/TAO_IDL/ast/ast_sequence.cpp
TAO/TAO_IDL/ast/ast_structure.cpp
TAO/TAO_IDL/ast/ast_type.cpp
TAO/TAO_IDL/ast/ast_typedef.cpp
TAO/TAO_IDL/ast/ast_union.cpp
TAO/TAO_IDL/fe/fe_declarator.cpp
TAO/TAO_IDL/fe/fe_lookup.cpp
TAO/TAO_IDL/fe/idl.tab.cpp
TAO/TAO_IDL/fe/idl.ypp
TAO/TAO_IDL/include/ast_annotation_appl.h
TAO/TAO_IDL/include/ast_array.h
TAO/TAO_IDL/include/ast_decl.h
TAO/TAO_IDL/include/ast_sequence.h
TAO/TAO_IDL/include/ast_typedef.h
TAO/TAO_IDL/include/ast_union.h
TAO/TAO_IDL/include/utl_annotations.h
TAO/TAO_IDL/include/utl_identifier.h
TAO/TAO_IDL/util/utl_annotations.cpp
TAO/TAO_IDL/util/utl_identifier.cpp
TAO/tests/IDLv4/annotations/be_init.cpp