fix memory leak
fix golangdoc