/* Releases all references of the configuration and frees up the memory.  */
void textsearch_destroy(struct ts_config *conf)
/* Releases all references of the configuration and frees up the memory.  */
void textsearch_destroy(struct ts_config *conf)
{
	if (conf->ops) {
		if (conf->ops->destroy)
			conf->ops->destroy(conf);
		module_put(conf->ops->owner);
	}
	kfree(conf);
}