Author: pnoltes
Date: Tue Sep 17 14:04:21 2013
New Revision: 1524045

URL: http://svn.apache.org/r1524045
Log:
CELIX-83: fixed bad access issue, due to not initialized memory pool

Modified:
    incubator/celix/trunk/framework/private/src/service_registry.c

Modified: incubator/celix/trunk/framework/private/src/service_registry.c
URL: 
http://svn.apache.org/viewvc/incubator/celix/trunk/framework/private/src/service_registry.c?rev=1524045&r1=1524044&r2=1524045&view=diff
==============================================================================
--- incubator/celix/trunk/framework/private/src/service_registry.c (original)
+++ incubator/celix/trunk/framework/private/src/service_registry.c Tue Sep 17 
14:04:21 2013
@@ -138,6 +138,7 @@ celix_status_t serviceRegistry_create(ap
 
                apr_pool_pre_cleanup_register(pool, *registry, 
serviceRegistry_destroy);
 
+               (*registry)->pool=pool;
                (*registry)->serviceChanged = serviceChanged;
                (*registry)->inUseMap = hashMap_create(NULL, NULL, NULL, NULL);
                (*registry)->serviceRegistrations = hashMap_create(NULL, NULL, 
NULL, NULL);


Reply via email to