pnoltes commented on a change in pull request #326: URL: https://github.com/apache/celix/pull/326#discussion_r585737908
########## File path: bundles/pubsub/pubsub_admin_zmq/v2/src/pubsub_zmq_topic_receiver.c ########## @@ -133,7 +133,7 @@ pubsub_zmq_topic_receiver_t* pubsub_zmqTopicReceiver_create(celix_bundle_context pubsub_zmq_topic_receiver_t *receiver = calloc(1, sizeof(*receiver)); receiver->ctx = ctx; receiver->logHelper = logHelper; - receiver->serializerType = serializerType; + receiver->serializerType = strndup(serializerType, 1024*1024); Review comment: use celix_utils_strdup which underwater uses strndup ########## File path: libs/utils/include/hash_map.h ########## @@ -75,6 +75,8 @@ UTILS_EXPORT void *hashMap_put(hash_map_pt map, void *key, void *value); UTILS_EXPORT void *hashMap_remove(hash_map_pt map, const void *key); +UTILS_EXPORT void *hashMap_removeFreeKey(hash_map_pt map, const void *key); Review comment: :+1: ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org