Added debug assert for checking return value of memory allocation.

This commit is contained in:
vraatikka 2013-09-02 21:53:49 +03:00
parent c4ce2efd9f
commit 366441a4bb

View File

@ -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;