[sr-dev] git:master:967a7168: cdp: fix three coverity errors (ressource leaks and error checks)