rem: if (hash) free_double_hash(hash); if (db_con && pdt_dbf.close)
add: if (_dhash!=NULL) pdt_free_hash(_dhash); if (_ptree!=NULL) pdt_free_tree(_ptree); if (db_con!=NULL && pdt_dbf.close!=NULL)
context: static void mod_destroy(void){	DBG("PDT: mod_destroy : Cleaning up\n");	if (hash)		free_double_hash(hash);	if (db_con && pdt_dbf.close)		pdt_dbf.close(db_con);	if (next_code)		shm_free(next_code);	lock_destroy(&l);}