[PATCH v2] webservices: Fix some leaks on error paths (Coverity).