set to NULL after freeing
Merge pull request #9 from yorkie/master

set to NULL after freeing