incubator-celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (Closed) (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (CELIX-30) Memory bug in service registration
Date Mon, 02 Apr 2012 13:51:25 GMT

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

Pepijn Noltes closed CELIX-30.
------------------------------

    Resolution: Fixed
    
> Memory bug in service registration
> ----------------------------------
>
>                 Key: CELIX-30
>                 URL: https://issues.apache.org/jira/browse/CELIX-30
>             Project: Celix
>          Issue Type: Bug
>            Reporter: Pepijn Noltes
>
> In the module service_registration.c the className value is assigned to the provided
char pointer, but ownership is not claimed.
> Solution: change line 77 in service_registration from to:
> (*registration)->className = serviceName;
> (*registration)->className = apr_pstrdup(pool,serviceName);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message