[sr-dev] git:master: dmq: many safety checks for mem mallocs and function return codes