summaryrefslogtreecommitdiff
path: root/patch.go
diff options
context:
space:
mode:
Diffstat (limited to 'patch.go')
-rw-r--r--patch.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/patch.go b/patch.go
index 880f088..d927109 100644
--- a/patch.go
+++ b/patch.go
@@ -31,6 +31,7 @@ func (patch *Patch) Free() error {
}
runtime.SetFinalizer(patch, nil)
C.git_patch_free(patch.ptr)
+ patch.ptr = nil
return nil
}