[ARVADOS] updated: 1.3.0-820-g0e6733b50

Git user git at public.curoverse.com
Wed Apr 24 20:25:25 UTC 2019


Summary of changes:
 services/keep-balance/balance.go | 1 +
 1 file changed, 1 insertion(+)

       via  0e6733b5009d22022c3b68bbd76b75ebdf5a12db (commit)
      from  b6a55c2430033ee1a17b2266b529b425e641d19f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0e6733b5009d22022c3b68bbd76b75ebdf5a12db
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Wed Apr 24 16:23:56 2019 -0400

    15112: Fix fd leak on error.
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/services/keep-balance/balance.go b/services/keep-balance/balance.go
index bd3152fd8..33f3762b4 100644
--- a/services/keep-balance/balance.go
+++ b/services/keep-balance/balance.go
@@ -78,6 +78,7 @@ func (bal *Balancer) Run(config Config, runOptions RunOptions) (nextRunOptions R
 		if err != nil {
 			return
 		}
+		defer lbFile.Close()
 		err = syscall.Flock(int(lbFile.Fd()), syscall.LOCK_EX|syscall.LOCK_NB)
 		if err != nil {
 			return

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list