leaks fixed

fix some leaks
leaks fixed

fix the same leak to nlog with jsonkit