fix #9 leaking memory when using append* method.

this bug has 2 leak points.

1. append magic method.
2. decoding repeated message

now it seems fine.