add: db_handle = 0;
context: static int mod_init(void){	int i;	DBG("domain - initializing\n");		/* Check if database module has been loaded */	if (bind_dbmod()) {		LOG(L_ERR, "domain:mod_init(): Unable to bind database module\n");		return -1;	}	/* Check if cache needs to be loaded from domain table */	if (db_mode == 1) {		db_handle = db_init(db_url);		if (!db_handle) {			LOG(L_ERR, "domain:mod_init(): Unable to connect database\n");			return -1;		}				/* Initialize fifo interface */		(void)init_domain_fifo();		/* Initializing hash tables and hash table variable */		hash_table_1 = (struct domain_list **)shm_malloc(sizeof(struct domain_list *) * HASH_SIZE);		if (hash_table_1 == 0) {			LOG(L_ERR, "domain: mod_init(): No memory for hash table\n");		}		hash_table_2 = (struct domain_list **)shm_malloc(sizeof(struct domain_list *) * HASH_SIZE);		if (hash_table_2 == 0) {			LOG(L_ERR, "domain: mod_init(): No memory for hash table\n");		}		for (i = 0; i < HASH_SIZE; i++) {			hash_table_1[i] = hash_table_2[i] = (struct domain_list *)0;		}		hash_table = (struct domain_list ***)shm_malloc(sizeof(struct domain_list *));		*hash_table = hash_table_1;		if (reload_domain_table() == -1) {			LOG(L_CRIT, "domain:mod_init(): Domain table reload failed\n");			return -1;		}					db_close(db_handle);	}	return 0;}