summaryrefslogtreecommitdiff
path: root/diff.go
diff options
context:
space:
mode:
Diffstat (limited to 'diff.go')
-rw-r--r--diff.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/diff.go b/diff.go
index 76838e7..e50cd70 100644
--- a/diff.go
+++ b/diff.go
@@ -447,7 +447,7 @@ func (diff *Diff) ToBuf(format DiffFormat) ([]byte, error) {
if ecode < 0 {
return nil, MakeGitError(ecode)
}
- defer C.git_buf_free(&diffBuf)
+ defer C.git_buf_dispose(&diffBuf)
return C.GoBytes(unsafe.Pointer(diffBuf.ptr), C.int(diffBuf.size)), nil
}