test: shorter run-tmp
protobuf2json: fix memory leak reported by valgrind
json2protobuf: fix memory leak reported by valgrind