celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriele Ricciardi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-363) Memory leak in DFI
Date Thu, 02 Jun 2016 13:44:59 GMT
Gabriele Ricciardi created CELIX-363:

             Summary: Memory leak in DFI  
                 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

View raw message