rem: if (layer->type && layer->type != joker_type) free(layer->type); if (layer->sub_type && layer->type != joker_type) free(layer->sub_type);
context: static status_t delete_layer(net_layer *layer){	if (!layer)		return B_ERROR;	if (! g_layers_pool)		// Uh? From where come this net_data!?!		return B_ERROR;			if (layer->name)		free(layer->name);	if (layer->type && layer->type != joker_type)		free(layer->type);	if (layer->sub_type && layer->type != joker_type)		free(layer->sub_type);	if (layer->layers_above)		free(layer->layers_above);	if (layer->layers_below)		free(layer->layers_below);			return g_memory_pool->delete_pool_node(g_layers_pool, layer);}