fix memory leak
Revert "fix memory leak"

This reverts commit 8563d7c874e0a72f1d1aa6776bb3aa4e7c11b9fb.