rem: if((jbc->close = (int*)_M_SHM_MALLOC(sizeof(int)))==NULL) { _M_FREE(jbc->hostname); _M_FREE(jbc); return NULL;  } *jbc->close = 0;
context: xj_jcon xj_jcon_init(char *hostname, int port){	xj_jcon jbc = NULL;	if(hostname==NULL || strlen(hostname)<=0)		return NULL;		jbc = (xj_jcon)_M_MALLOC(sizeof(struct _xj_jcon));	if(jbc == NULL)		return NULL;	jbc->sock=-1;    jbc->port = port;    jbc->juid = -1;	jbc->seq_nr = 0;    jbc->hostname = (char*)_M_MALLOC(strlen(hostname)+1);	if(jbc->hostname == NULL)	{		_M_FREE(jbc);		return NULL;	}	if((jbc->close = (int*)_M_SHM_MALLOC(sizeof(int)))==NULL)	{		_M_FREE(jbc->hostname);		_M_FREE(jbc);		return NULL;	}	*jbc->close = 0;    strcpy(jbc->hostname, hostname);	jbc->allowed = jbc->ready = XJ_NET_NUL;	jbc->jconf = NULL;	jbc->nrjconf = 0;    return jbc;}