[sr-dev] git:master: xcap_server: Fix memory allocation check bug in xcap_misc