summaryrefslogtreecommitdiff
path: root/patch.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2018-08-08 11:51:51 +0200
committerCarlos Martín Nieto <[email protected]>2018-08-08 11:51:51 +0200
commit538a05d55c6051371dd1749af75a7b2e2d623d53 (patch)
tree8273762efd5b460bd4d2ee215263e073fa5f4aaa /patch.go
parent973938cbb5539c7ee7eec3b9895a66f502b16604 (diff)
Remove uses of deprecated git_buf_free
Diffstat (limited to 'patch.go')
-rw-r--r--patch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch.go b/patch.go
index 7e6f71d..6a16b5f 100644
--- a/patch.go
+++ b/patch.go
@@ -51,7 +51,7 @@ func (patch *Patch) String() (string, error) {
if ecode < 0 {
return "", MakeGitError(ecode)
}
- defer C.git_buf_free(&buf)
+ defer C.git_buf_dispose(&buf)
return C.GoString(buf.ptr), nil
}