lisp: address the issues raised by coverity 249165