diff options
| author | Carlos Martín Nieto <[email protected]> | 2017-07-08 16:07:51 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2017-07-08 16:07:51 +0200 |
| commit | 55a1096141519a1f380d0702671cfe9bf90ec435 (patch) | |
| tree | 4a9c1357f3682d4134318e73ef85aa172cbfbd48 /repository.go | |
| parent | 7d29d6864474525c9853d86996d769a5459dc15d (diff) | |
Third round of keep-alive aditions
Diffstat (limited to 'repository.go')
| -rw-r--r-- | repository.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/repository.go b/repository.go index 6b07e87..abf8b71 100644 --- a/repository.go +++ b/repository.go @@ -120,6 +120,7 @@ func NewRepositoryWrapOdb(odb *Odb) (repo *Repository, err error) { var ptr *C.git_repository ret := C.git_repository_wrap_odb(&ptr, odb.ptr) + runtime.KeepAlive(odb) if ret < 0 { return nil, MakeGitError(ret) } |
