You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by "Pepijn Noltes (Created) (JIRA)" <ji...@apache.org> on 2012/03/07 14:18:58 UTC
[jira] [Created] (CELIX-30) Memory bug in service registration
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
[jira] [Closed] (CELIX-30) Memory bug in service registration
Posted by "Pepijn Noltes (Closed) (JIRA)" <ji...@apache.org>.
[ 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