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