mirror of https://github.com/yandex/odyssey.git
sources/thread_global.c: add missing checks on malloc failure (#493)
This commit is contained in:
parent
9603896a7b
commit
e9288b971d
|
@ -6,6 +6,9 @@
|
|||
od_retcode_t od_thread_global_init(od_thread_global **gl)
|
||||
{
|
||||
*gl = malloc(sizeof(od_thread_global));
|
||||
if (*gl == NULL) {
|
||||
return NOT_OK_RESPONSE;
|
||||
}
|
||||
|
||||
od_conn_eject_info_init(&(*gl)->info);
|
||||
|
||||
|
|
Loading…
Reference in New Issue