moxi: fix memleak issue