Fixed to Coverity defects and a fix to tee filter not compiling with SS_DEBUG flag.

This commit is contained in:
Markus Makela
2015-03-07 06:00:01 +02:00
parent dc1829fc8a
commit ea039dd01a
12 changed files with 50 additions and 39 deletions

View File

@ -73,18 +73,19 @@ resultset_free(RESULTSET *resultset)
{
RESULT_COLUMN *col;
if (resultset)
return;
col = resultset->column;
while (col)
if (resultset != NULL)
{
RESULT_COLUMN *next;
col = resultset->column;
while (col)
{
RESULT_COLUMN *next;
next = col->next;
resultset_column_free(col);
col = next;
}
free(resultset);
}
free(resultset);
}
/**

View File

@ -42,6 +42,7 @@ static bool success = false;
int hup(DCB* dcb)
{
success = true;
return 1;
}
/**
@ -108,7 +109,8 @@ hkinit();
skygw_log_sync_all();
ss_info_dassert(0 != result, "Stop should succeed");
dcb = dcb_alloc(DCB_ROLE_REQUEST_HANDLER);
if((dcb = dcb_alloc(DCB_ROLE_REQUEST_HANDLER)) == NULL)
return 1;
ss_info_dassert(dcb != NULL, "DCB allocation failed");
session = session_alloc(service,dcb);