add: image->info->unit = INCH;
context: new_gerb_image(gerb_image_t *image){    image = (gerb_image_t *)malloc(sizeof(gerb_image_t));    if (image != NULL) {	memset((void *)image, 0, sizeof(gerb_image_t));	image->netlist = (gerb_net_t *)malloc(sizeof(gerb_net_t));	if (image->netlist != NULL) {	    memset((void *)image->netlist, 0, sizeof(gerb_net_t));	    	    image->info = (gerb_image_info_t *)malloc(sizeof(gerb_image_info_t));	    if (image->info != NULL) {		memset((void *)image->info, 0, sizeof(gerb_image_info_t));		image->info->min_x = HUGE_VAL;		image->info->min_y = HUGE_VAL;		image->info->max_x = -HUGE_VAL;		image->info->max_y = -HUGE_VAL;				return image;	    }	    	    free(image->netlist);	    image->netlist = NULL;	}	free(image);	image = NULL;    }        return NULL;}