diff options
author | Emanuele Aina <emanuele.aina@collabora.com> | 2019-09-09 06:58:33 +0000 |
---|---|---|
committer | Emanuele Aina <emanuele.aina@collabora.com> | 2019-09-09 06:58:33 +0000 |
commit | 8c16f187783f193a7e5a87d9ef1281cd8ca92c1e (patch) | |
tree | efd3b745eec6410d08dc53dd7ecb43a7be5cdd32 /actions/ostree_deploy_action.go | |
parent | 3f13e87bb45d0d791c86338f9aa0853a9f41a992 (diff) | |
parent | afdeba754f8766de3b12211953eced5304991cde (diff) |
Update upstream source from tag 'upstream/1.0.0+git20190906.f5be960'
Update to upstream version '1.0.0+git20190906.f5be960'
with Debian dir ff8d0024ed4cb787f364d24c9d56bc359f4d73e9
Diffstat (limited to 'actions/ostree_deploy_action.go')
-rw-r--r-- | actions/ostree_deploy_action.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/actions/ostree_deploy_action.go b/actions/ostree_deploy_action.go index 7d6e6bd..7353691 100644 --- a/actions/ostree_deploy_action.go +++ b/actions/ostree_deploy_action.go @@ -55,7 +55,6 @@ import ( "io" "os" "path" - "runtime" "strings" "github.com/go-debos/debos" @@ -198,6 +197,11 @@ func (ot *OstreeDeployAction) Run(context *debos.DebosContext) error { return err } - runtime.GC() + /* libostree keeps some information, like repo lock file descriptor, in + * thread specific variables. As GC can be run from another thread, it + * may not been able to access this, preventing to free them correctly. + * To prevent this, explicitly dereference libostree objects. */ + dstRepo.Unref() + sysroot.Unref() return nil } |