rem: *_loc = (location_t*)pkg_malloc(sizeof(location_t));
add: *_loc = (location_t*)sh_malloc(sizeof(location_t));
context: int create_location(location_t** _loc, str* _user){#ifdef PARANOID	if ((!_loc) || (!_user)) {		LOG(L_ERR, "create_location(): Invalid parameter value\n");		return FALSE;	}#endif	*_loc = (location_t*)pkg_malloc(sizeof(location_t));	if (!(*_loc)) {		LOG(L_ERR, "create_location(): No memory left\n");		return FALSE;	}	(*_loc)->user.s = (char*)pkg_malloc(_user->len + 1);	if (!((*_loc)->user.s)) {		LOG(L_ERR, "create_location(): No memory left\n");		return FALSE;	}	memcpy((*_loc)->user.s, _user->s, _user->len);	(*_loc)->user.s[_user->len] = '\0';	     /* We are case insensitive */	strlower((*_loc)->user.s, _user->len);	(*_loc)->user.len = _user->len;	(*_loc)->contacts = NULL;  /* We have no contacts yet */	return TRUE;}