Memory Leaks/Growth
===================

.. Release Notes from this point.

:major:`[Major]` Memory leak when setting a subject name whitelist while security was not enabled
-------------------------------------------------------------------------------------------------
When setting the *DomainParticipant* property
``dds.participant.trust_plugins.subject_name_whitelist`` without
enabling the *Security Plugins*, a memory leak occurred in the internal
function ``PRESParticipant_storeMutableProperty``. To prevent this
issue, setting ``dds.participant.trust_plugins.subject_name_whitelist``
is now allowed only when the *Security Plugins* are enabled. Otherwise,
``DDS_DomainParticipantFactory_create_participant`` returns NULL and
``DDS_DomainParticipant_set_qos`` returns
``DDS_RETCODE_NOT_ALLOWED_BY_SECURITY`` .


[RTI Issue ID SEC-2731]

:minor:`[Minor]` Memory leak when dds.participant.trust_plugins.expiration_advance_notice_duration.sec property value was invalid
---------------------------------------------------------------------------------------------------------------------------------
A memory leak occurred when *DomainParticipant* creation failed, the
``<enable_key_revision>`` governance rule was set to ``TRUE``, and
the
``dds.participant.trust_plugins.expiration_advance_notice_duration.sec``
property value was configured incorrectly.

[RTI Issue ID SEC-2751]
