celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bpe...@apache.org
Subject svn commit: r1646161 - /celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
Date Wed, 17 Dec 2014 06:05:27 GMT
Author: bpetri
Date: Wed Dec 17 06:05:26 2014
New Revision: 1646161

URL: http://svn.apache.org/r1646161
Log:
CELIX-190: fixed minor leaks

Modified:
    celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c

Modified: celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
URL: http://svn.apache.org/viewvc/celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c?rev=1646161&r1=1646160&r2=1646161&view=diff
==============================================================================
--- celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
(original)
+++ celix/trunk/remote_services/remote_service_admin_http/private/src/remote_service_admin_impl.c
Wed Dec 17 06:05:26 2014
@@ -454,6 +454,9 @@ celix_status_t remoteServiceAdmin_instal
         }
 	}
 
+	hash_map_entry_pt entry = hashMap_getEntry(endpointProperties, (void *) OSGI_FRAMEWORK_SERVICE_ID);
+
+	char* key = hashMapEntry_getKey(entry);
 	char *serviceId = (char *) hashMap_remove(endpointProperties, (void *) OSGI_FRAMEWORK_SERVICE_ID);
 	char *uuid = NULL;
 
@@ -479,6 +482,10 @@ celix_status_t remoteServiceAdmin_instal
 	remoteServiceAdmin_createEndpointDescription(admin, reference, endpointProperties, interface,
&endpointDescription);
 	exportRegistration_setEndpointDescription(registration, endpointDescription);
 
+	free(key);
+	free(serviceId);
+	free(keys);
+
 	return status;
 }
 



Mime
View raw message