From 084ffd97aaa23ee68cc1334cd81e4a3000daf0e9 Mon Sep 17 00:00:00 2001 From: Brian Tiger Chow Date: Fri, 7 Nov 2014 01:51:13 -0800 Subject: [PATCH] fix(cli) tear down node --- cmd/ipfs2/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/ipfs2/main.go b/cmd/ipfs2/main.go index 4a4516ed8..5adc4181a 100644 --- a/cmd/ipfs2/main.go +++ b/cmd/ipfs2/main.go @@ -177,6 +177,7 @@ func callCommand(req cmds.Request, root *cmds.Command) cmds.Response { fmt.Println(err) os.Exit(1) } + defer node.Close() req.Context().Node = node res = root.Call(req)