memory will leaks

the payload pointor assigned two memory,will lead to memory leaks
Merge pull request #16 from liuxc0116/master

confirmed