From e28cce87c7551bffa1f4602ff492348f9a8cba60 Mon Sep 17 00:00:00 2001 From: lhchavez Date: Thu, 10 Dec 2020 05:35:40 -0800 Subject: Ensure that no pointer handles leak during the test (#712) This change makes sure that pointer handles are correctly cleaned up during tests. --- clone_test.go | 1 + 1 file changed, 1 insertion(+) (limited to 'clone_test.go') diff --git a/clone_test.go b/clone_test.go index ded9847..acfbbcb 100644 --- a/clone_test.go +++ b/clone_test.go @@ -74,4 +74,5 @@ func TestCloneWithCallback(t *testing.T) { if err != nil || remote == nil { t.Fatal("Remote was not created properly") } + defer remote.Free() } -- cgit v1.2.3