#12 - fixed LogFunction memory retention issue