[sr-dev] git:master:8b9e4dbc: lcr: convert to memory error logging helper, add some missing mem cleanup on error