static    char    sccsid[]="%Z% %M% %I% %E% %U%";
/*******************************************************************/
/*        int   col_mn_term()                                      */
/*                                                                 */
/*  引き数                                                         */
/*                                                                 */
/*  戻り値                                                         */
/*        0                  : 処理正常　　                        */
/*        -1                 : 送信パケット無し                    */
/*                                                                 */
/*  処理概要                                                       */
/*        パケットの書き込み処理                                   */
/*******************************************************************/
#include "colmn.h"

extern CLPRTBL       *pGLprocTable;
extern tdtLruScrHead *tpLruScrHeadImp;
extern tdtLruScrHead *tpLruScrHead;

int col_mn_term()
{
	if (ADDRCHK(pGLprocTable->pha_vnam)) {
		akxs_xhash_free(pGLprocTable->pha_vnam);
		pGLprocTable->pha_vnam = NULL;
	}
	if (ADDRCHK(pGLprocTable->pTBL_vnam)) {
		cl_free_var_ent(pGLprocTable->pTBL_vnam);
		Free(pGLprocTable->pTBL_vnam[0]);
		Free(pGLprocTable->pTBL_vnam);
		pGLprocTable->pTBL_vnam = NULL;
	}
#if 1	/* 2021.7.13 */
	if (ADDRCHK(pGLprocTable->pha_gid)) {
		akxs_xhasl_free(pGLprocTable->pha_gid);
		pGLprocTable->pha_gid = NULL;
	}
#endif
	cl_lru_scr_free(tpLruScrHeadImp);
	cl_lru_scr_free(tpLruScrHead);
	cl_tmp_const_clear(2);

	return 0;
}
