summaryrefslogtreecommitdiff
path: root/patch.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2018-08-08 12:33:28 +0200
committerGitHub <[email protected]>2018-08-08 12:33:28 +0200
commit5280ceb7514c7eb4cfcaaf33a13ee580cd9bc2e0 (patch)
tree8273762efd5b460bd4d2ee215263e073fa5f4aaa /patch.go
parent14280de4da0f392935854a7cbdd67b2a5505c3a8 (diff)
parent538a05d55c6051371dd1749af75a7b2e2d623d53 (diff)
Merge pull request #452 from libgit2/cmn/bump-libgit2-master
Bump vendored libgit2 to 275d84c583
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
}