fixed free issue with logview