Skip to content

Commit

Permalink
fix(coreapi/add): close the fake repo used when adding with hash-only
Browse files Browse the repository at this point in the history
fixes #6744
  • Loading branch information
Stebalien committed Jan 17, 2020
1 parent cb3ae93 commit 335a99e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/coreapi/unixfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (api *UnixfsAPI) Add(ctx context.Context, files files.Node, opts ...options
if err != nil {
return nil, err
}
defer nilnode.Close()
addblockstore = nilnode.Blockstore
exch = nilnode.Exchange
pinning = nilnode.Pinning
Expand Down

0 comments on commit 335a99e

Please sign in to comment.