[sr-dev] git:master:0b9442b1: acc: convert to memory logging helper, properly free memory in case of errors