Fix newajax countws free parsing data from null by verify data is not null and data is a pointer.
if(config.connectionType == newAjax && data != NULL && *data)
{
    free(data);
    data = NULL;
}