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