Fix memleak, fixed CID123.