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.
func (r *Repository) Message() (string, error) {
buf := C.git_buf{}
defer C.git_buf_dispose(&buf)
defer C.git_buf_free(&buf)
runtime.LockOSThread()
defer runtime.UnlockOSThread()
@ -722,5 +722,5 @@ func (r *Repository) RemoveMessage() error {
if cErr < 0 {
return MakeGitError(cErr)
}
return nil
return nil
}