rem: ptr = (char*)pkg_malloc(len + 1);
add: ptr = (char*)sh_malloc(len + 1);
context: int update_contact(contact_t* _dst, contact_t* _src){	char* ptr;	int len;#ifdef PARANOID	if ((!_dst) || (!_src)) {		LOG(L_ERR, "update_contact(): Invalid parameter value\n");		return FALSE;	}	if (_src->expires == 0) {		LOG(L_ERR, "update_contact(): Binding should be removed, not updated\n");		return FALSE;	}#endif	len = strlen(_src->callid);	ptr = (char*)pkg_malloc(len + 1);	if (!ptr) {		LOG(L_ERR, "update_contact(): No memory left\n");		return FALSE;	}	memcpy(ptr, _src->callid, len + 1);	pkg_free(_dst->callid);	_dst->callid = ptr;	_dst->expires = _src->expires;	_dst->q = _src->q;	_dst->cseq = _src->cseq;	return TRUE;}