<p><b>@henningw</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2112#discussion_r341222893">src/modules/kafka/kfk.c</a>:</p>
<pre style='color:#555'>> +    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));
</pre>
<p>Thank you</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/pull/2112?email_source=notifications&email_token=ABO7UZKJRFHNFCJRIQRGM53QRL54HA5CNFSM4JG7GW32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCJ5B2LI#discussion_r341222893">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZKMZKQREI7IXK23EC3QRL54HANCNFSM4JG7GW3Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZPDPQCDBTLERRIC2WDQRL54HA5CNFSM4JG7GW32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCJ5B2LI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/pull/2112?email_source=notifications\u0026email_token=ABO7UZKJRFHNFCJRIQRGM53QRL54HA5CNFSM4JG7GW32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCJ5B2LI#discussion_r341222893",
"url": "https://github.com/kamailio/kamailio/pull/2112?email_source=notifications\u0026email_token=ABO7UZKJRFHNFCJRIQRGM53QRL54HA5CNFSM4JG7GW32YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCJ5B2LI#discussion_r341222893",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>