Check for null params

This commit is contained in:
MrDave
2020-11-27 13:45:36 -07:00
committed by Mr-Dave
parent 1b630ec21d
commit 5f7a6f7e8f

View File

@@ -776,6 +776,10 @@ void util_parms_free(struct ctx_params *params)
{
int indx_parm;
if (params == NULL ) {
return;
}
for (indx_parm=0; indx_parm<params->params_count; indx_parm++)
{
if (params->params_array[indx_parm].param_name != NULL) {