fix memleak
fixed memleak