rem: if(CON_SQLURL(_h)) { aug_free(CON_SQLURL(_h)); CON_SQLURL(_h) = (char *) 0; }
context: static int disconnect_db(db_con_t* _h){	if(! _h)	{		DLOG("disconnect_db", "null db_con_t, ignored!\n");		return(0);	}	/*	** free lingering memory tree if it exists	*/	if(CON_SQLURL(_h))	{		aug_free(CON_SQLURL(_h));		CON_SQLURL(_h) = (char *) 0;	}	/*	** ignore if there is no current connection	*/	if(CON_CONNECTED(_h) != 1)	{		DLOG("disconnect_db", "not connected, ignored!\n");		return 0;	}	/*	** make sure we are trying to close a connection that was opened	** by our process ID	*/	if(CON_PID(_h) == getpid())	{		PQfinish(CON_CONNECTION(_h));		CON_CONNECTED(_h) = 0;	}	else	{		DLOG("disconnect_db",			"attempt to release connection not owned, ignored!\n");	}	return 0;}