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

<hr>

<p>In <a href="https://github.com/kamailio/kamailio/pull/2016#discussion_r307996331">src/modules/async/async_sleep.c</a>:</p>
<pre style='color:#555'>> +                    sizeof(struct async_ms_list));
+       if(_async_ms_list == NULL) {
+               LM_ERR("no more shm\n");
+               return -1;
+       }
+       memset(_async_ms_list, 0, sizeof(struct async_ms_list));
+       if(lock_init(&_async_ms_list->lock) == 0) {
+               LM_ERR("cannot init lock \n");
+               shm_free(_async_ms_list);
+               _async_ms_list = 0;
+               return -1;
+       }
+       return 0;
+}
+
+int async_destroy_ms_timer_list(void)
</pre>
<p>Good catch. Fixing now.</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/2016?email_source=notifications&email_token=ABO7UZIDBNQMFORYAAGJWZ3QBV4FZA5CNFSM4IHKWVP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7Y32SA#discussion_r307996331">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZMSTLECV3VSXUOHXVTQBV4FZANCNFSM4IHKWVPQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABO7UZKQT577LLFWQNOEIO3QBV4FZA5CNFSM4IHKWVP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7Y32SA.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/2016?email_source=notifications\u0026email_token=ABO7UZIDBNQMFORYAAGJWZ3QBV4FZA5CNFSM4IHKWVP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7Y32SA#discussion_r307996331",
"url": "https://github.com/kamailio/kamailio/pull/2016?email_source=notifications\u0026email_token=ABO7UZIDBNQMFORYAAGJWZ3QBV4FZA5CNFSM4IHKWVP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB7Y32SA#discussion_r307996331",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>