fixed resource leak in the resumaleputdemo

For Test