lsl -- fix memory problem

lsl -- fix memory problem