Added debug assert for checking return value of memory allocation.
This commit is contained in:
@ -63,6 +63,7 @@ session_alloc(SERVICE *service, DCB *client)
|
|||||||
SESSION *session;
|
SESSION *session;
|
||||||
|
|
||||||
session = (SESSION *)calloc(1, sizeof(SESSION));
|
session = (SESSION *)calloc(1, sizeof(SESSION));
|
||||||
|
ss_info_dassert(session != NULL, "Allocating memory for session failed.");
|
||||||
|
|
||||||
if (session == NULL) {
|
if (session == NULL) {
|
||||||
int eno = errno;
|
int eno = errno;
|
||||||
|
|||||||
Reference in New Issue
Block a user