rem: if(ptr && ptr!=&libc_globl_reent) free(ptr);
add: if(ptr && ptr!=&libc_globl_reent) { _wrapup_reent(ptr); _reclaim_reent(ptr); free(ptr); }
context: int __libc_delete_hook(lwp_cntrl *curr_thr, lwp_cntrl *delete_thr){	struct _reent *ptr;	if(curr_thr==delete_thr)		ptr = _REENT;	else		ptr = (struct _reent*)delete_thr->libc_reent;		if(ptr && ptr!=&libc_globl_reent) free(ptr);		delete_thr->libc_reent = 0;		if(curr_thr==delete_thr) _REENT = 0;		return 1;}