fix memleak
fix memleak