[sr-dev] [kamailio/kamailio] kafka: module to produce and send messages to a Kafka server (#2112)
vhernando
notifications at github.com
Wed Oct 30 22:44:06 CET 2019
vhernando commented on this pull request.
> + LM_DBG("Initializing statistics\n");
+
+ stats_lock = lock_alloc();
+ if (!stats_lock) {
+ LM_ERR("Cannot allocate stats lock\n");
+ return -1;
+ }
+
+ if(lock_init(stats_lock) == NULL) {
+ LM_ERR("cannot init stats lock\n");
+ lock_dealloc(stats_lock);
+ stats_lock = NULL;
+ return -1;
+ }
+
+ stats_general = shm_malloc(sizeof(kfk_stats_t));
Hi Henning!
stats_general memory is freed in kfk_stats_close function node by node by kfk_stats_topic_free.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2112#discussion_r340873415
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20191030/f85b4923/attachment.html>
More information about the sr-dev
mailing list