[
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