diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-10-13 09:03:36 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-10-15 06:43:08 +0200 |
commit | 3a049eb69c9b2b04d0e55b6240883dc38a2e5154 (patch) | |
tree | 58117c9d032c95e47a98f2c9e5da0e689200852d /src | |
parent | eeb7e79c9ac404e13891bc67d43c6d5c67e773b2 (diff) |
Fix leaking git index file when posting qt5 updates
We need to remove the temporary git index file used to create the qt5 commit when we're done.
Change-Id: I83e00112cd5abf289f516c1cb1b915e61ecfe463
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/qtmoduleupdater/qt5.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qtmoduleupdater/qt5.go b/src/qtmoduleupdater/qt5.go index 738a084b..47118b11 100644 --- a/src/qtmoduleupdater/qt5.go +++ b/src/qtmoduleupdater/qt5.go @@ -191,6 +191,7 @@ func prepareQt5Update(product string, branch string, updatedModules map[string]* if err != nil { return err } + defer index.Free() if err = index.ReadTree(productHead); err != nil { return err |