fix valgrind

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>