Use the old `git_buf_free()` function
This is not yet ready for the future.
This commit is contained in:
parent
e8d6969470
commit
ae4f21273b
|
@ -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()
|
||||||
|
@ -722,5 +722,5 @@ func (r *Repository) RemoveMessage() error {
|
||||||
if cErr < 0 {
|
if cErr < 0 {
|
||||||
return MakeGitError(cErr)
|
return MakeGitError(cErr)
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue