summaryrefslogtreecommitdiff
path: root/branch.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 /branch.go
parent973938cbb5539c7ee7eec3b9895a66f502b16604 (diff)
Remove uses of deprecated git_buf_free
Diffstat (limited to 'branch.go')
-rw-r--r--branch.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/branch.go b/branch.go
index d6e7a53..6f79825 100644
--- a/branch.go
+++ b/branch.go
@@ -208,7 +208,7 @@ func (repo *Repository) RemoteName(canonicalBranchName string) (string, error) {
if ret < 0 {
return "", MakeGitError(ret)
}
- defer C.git_buf_free(&nameBuf)
+ defer C.git_buf_dispose(&nameBuf)
return C.GoString(nameBuf.ptr), nil
}
@@ -256,7 +256,7 @@ func (repo *Repository) UpstreamName(canonicalBranchName string) (string, error)
if ret < 0 {
return "", MakeGitError(ret)
}
- defer C.git_buf_free(&nameBuf)
+ defer C.git_buf_dispose(&nameBuf)
return C.GoString(nameBuf.ptr), nil
}