leaks fixed

fix some leaks
leaks fixed

fix the same leak to nlog with jsonkit
fix leaks

fix the encrypt: function leak
Merge pull request #1 from piosa/master

修复内存泄露