[m17n] fix some memory leak