diff options
| author | Carlos Martín Nieto <[email protected]> | 2017-07-07 23:45:09 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2017-07-08 09:11:38 +0200 |
| commit | 58334cf60441bd713b8fd990e30e0580b97bf3ae (patch) | |
| tree | f9338ec81be5dda689a0f64744033cbc01bb3179 /cherrypick.go | |
| parent | 0e9336be3f590b900a28a48b265dd2eab7836e03 (diff) | |
First round of mass keep-alive additions
Diffstat (limited to 'cherrypick.go')
| -rw-r--r-- | cherrypick.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cherrypick.go b/cherrypick.go index afc1b7e..8983a7a 100644 --- a/cherrypick.go +++ b/cherrypick.go @@ -66,6 +66,8 @@ func (v *Repository) Cherrypick(commit *Commit, opts CherrypickOptions) error { defer freeCherrypickOpts(cOpts) ecode := C.git_cherrypick(v.ptr, commit.cast_ptr, cOpts) + runtime.KeepAlive(v) + runtime.KeepAlive(commit) if ecode < 0 { return MakeGitError(ecode) } |
