Skip to content

Commit 673c2cd

Browse files
snadruscryptonemo
authored andcommitted
cleanup
1 parent d876ef0 commit 673c2cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cgo/proofs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,8 @@ func ClearCache(sectorSize uint64, cacheDirPath SliceRefUint8) error {
226226

227227
func ClearSyntheticProofs(sectorSize uint64, cacheDirPath SliceRefUint8) error {
228228
resp := C.clear_synthetic_proofs(C.uint64_t(sectorSize), cacheDirPath)
229+
defer resp.destroy()
230+
return CheckErr(resp)
229231
}
230232
func ClearLayerData(sectorSize uint64, cacheDirPath SliceRefUint8) error {
231233
resp := C.clear_layer_data(C.uint64_t(sectorSize), cacheDirPath)

0 commit comments

Comments
 (0)