[sr-dev] git:master:55f23d09: rls: free xml doc in case of error