[SR-Dev] git:master: lcr: fix double free on error