mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge branch 'tux3-master'
This commit is contained in:
commit
675f050f53
|
@ -1552,6 +1552,7 @@ MSISession *msi_init_session ( Messenger *messenger, int32_t max_calls )
|
|||
|
||||
if (retu == NULL) {
|
||||
LOGGER_ERROR("Allocation failed! Program might misbehave!");
|
||||
timer_terminate_session(handler);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1561,6 +1562,7 @@ MSISession *msi_init_session ( Messenger *messenger, int32_t max_calls )
|
|||
|
||||
if (!(retu->calls = calloc( sizeof (MSICall *), max_calls ))) {
|
||||
LOGGER_ERROR("Allocation failed! Program might misbehave!");
|
||||
timer_terminate_session(handler);
|
||||
free(retu);
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user