From e7da5162954223b2a007d586fb07d7daf1ab72ab Mon Sep 17 00:00:00 2001 From: LexLuthr Date: Tue, 30 Apr 2024 23:17:22 +0530 Subject: [PATCH] remove extra release --- curiosrc/ffi/sdr_funcs.go | 1 - 1 file changed, 1 deletion(-) diff --git a/curiosrc/ffi/sdr_funcs.go b/curiosrc/ffi/sdr_funcs.go index f532861ac4c..575f494550a 100644 --- a/curiosrc/ffi/sdr_funcs.go +++ b/curiosrc/ffi/sdr_funcs.go @@ -632,7 +632,6 @@ func (sb *SealCalls) PreFetch(ctx context.Context, sector storiface.SectorRef, t } func (sb *SealCalls) TreeD(ctx context.Context, sector storiface.SectorRef, unsealed cid.Cid, size abi.PaddedPieceSize, data io.Reader, unpaddedData bool, fspaths, pathIDs storiface.SectorPaths, release func()) error { - defer release() var err error defer func() { if err != nil {