Beispiel #1
0
/**
 * destroy function of module
 */
void destroy(void)
{
	int i;
#ifdef XJ_EXTRA_DEBUG
	LM_DBG("unloading module ...\n");
#endif
	if(pipes)
	{ // close the pipes
		for(i = 0; i < nrw; i++)
		{
			if(pipes[i])
			{
				close(pipes[i][0]);
				close(pipes[i][1]);
			}
			pkg_free(pipes[i]);
		}
		pkg_free(pipes);
	}
	// cleaning MySQL connections
	if(db_con != NULL)
	{
		for(i = 0; i<nrw; i++)
			jabber_dbf.close(db_con[i]);
		shm_free(db_con);
	}
			
	xj_wlist_free(jwl);
	LM_DBG("unloaded ...\n");
}
Beispiel #2
0
/**
 * destroy function of module
 */
static void destroy(void)
{
	int i;
#ifdef XJ_EXTRA_DEBUG
	DBG("XJAB: Unloading module ...\n");
#endif
	if(pipes)
	{ // close the pipes
		for(i = 0; i < nrw; i++)
		{
			if(pipes[i])
			{
				close(pipes[i][0]);
				close(pipes[i][1]);
			}
			pkg_free(pipes[i]);
		}
		pkg_free(pipes);
	}

	if (ctx) db_ctx_free(ctx);
	ctx = NULL;
	
	xj_wlist_free(jwl);
	DBG("XJAB: Unloaded ...\n");
}