[ 
https://issues.apache.org/jira/browse/CELIX-363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gabriele Ricciardi updated CELIX-363:
-------------------------------------
    Attachment: intfVersion_leak.patch

> Memory leak in DFI exportRegistration_create
> --------------------------------------------
>
>                 Key: CELIX-363
>                 URL: https://issues.apache.org/jira/browse/CELIX-363
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Gabriele Ricciardi
>         Attachments: intfVersion_leak.patch
>
>
> The CELIX_FRAMEWORK_SERVICE_VERSION property comes from the bundle service 
> version and (in case of DFI) also from the DFI descriptor.
> In the DFI exportRegistration_create, such a property is always set, so in 
> case it was already set via the bundle service version, a leak is generated.
> Attached a patch that checks if the CELIX_FRAMEWORK_SERVICE_VERSION property 
> is already set: if no it is set, if yes the value is compared with the one in 
> the DFI descriptor. In case of mismatch between the two, a warning log is 
> generated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to