mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 10:57:42 +08:00
Merge pull request #6747 from ipfs/fix/only-hash-leak
fix(coreapi/add): close the fake repo used when adding with hash-only
This commit is contained in:
commit
ec748a7b5b
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user