diff options
Diffstat (limited to 'signature.go')
| -rw-r--r-- | signature.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/signature.go b/signature.go index 0518387..16964d2 100644 --- a/signature.go +++ b/signature.go @@ -63,6 +63,7 @@ func (repo *Repository) DefaultSignature() (*Signature, error) { defer runtime.UnlockOSThread() cErr := C.git_signature_default(&out, repo.ptr) + runtime.KeepAlive(repo) if cErr < 0 { return nil, MakeGitError(cErr) } |
