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)