incubator-celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pepijn Noltes (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CELIX-30) Memory bug in service registration
Date Wed, 07 Mar 2012 13:18:58 GMT
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