rem: ret->parameters = (driver_parameter*) malloc(ret->parameter_count * sizeof(driver_parameter));
context: dup_driver_settings(const driver_settings *dup){	if(!dup)		return NULL; // we got a NULL pointer, so return nothing		driver_settings *ret = (driver_settings*) malloc(sizeof(driver_settings));		ret->parameter_count = dup->parameter_count;	ret->parameters = (driver_parameter*) malloc(ret->parameter_count * sizeof(driver_parameter));		for(int32 i=0; i < ret->parameter_count; i++)		copy_parameter(&dup->parameters[i], &ret->parameters[i]);		return ret;}