summaryrefslogtreecommitdiff
path: root/clone_test.go
diff options
context:
space:
mode:
authorlhchavez <[email protected]>2020-12-10 05:35:40 -0800
committerGitHub <[email protected]>2020-12-10 05:35:40 -0800
commite28cce87c7551bffa1f4602ff492348f9a8cba60 (patch)
tree17cda66f878bd6285f24d0867c444e9ca2e191e6 /clone_test.go
parentabf02bc7d79dfb7b0bbcd404ebecb202cff2a18e (diff)
Ensure that no pointer handles leak during the test (#712)
This change makes sure that pointer handles are correctly cleaned up during tests.
Diffstat (limited to 'clone_test.go')
-rw-r--r--clone_test.go1
1 files changed, 1 insertions, 0 deletions
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()
}