Use the old `git_buf_free()` function

This is not yet ready for the future.
This commit is contained in:
lhchavez 2021-02-03 05:46:14 -08:00
parent e8d6969470
commit ae4f21273b
1 changed files with 2 additions and 2 deletions

View File

@ -699,7 +699,7 @@ func (r *Repository) ClearGitIgnoreRules() error {
// the file after you create the commit. // the file after you create the commit.
func (r *Repository) Message() (string, error) { func (r *Repository) Message() (string, error) {
buf := C.git_buf{} buf := C.git_buf{}
defer C.git_buf_dispose(&buf) defer C.git_buf_free(&buf)
runtime.LockOSThread() runtime.LockOSThread()
defer runtime.UnlockOSThread() defer runtime.UnlockOSThread()