[sr-dev] git:master:1bbb1472: cnxcc: fix possible mem leaks on errors