From 5f11dbf319c2ee084f3779bbc89575138b159b71 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 21 May 2016 00:09:31 +0800 Subject: [PATCH] flash: close tempfile before deleting (#256) --- artiq/frontend/artiq_flash.py | 1 + 1 file changed, 1 insertion(+) diff --git a/artiq/frontend/artiq_flash.py b/artiq/frontend/artiq_flash.py index c6aea8fb7..9e360ec87 100755 --- a/artiq/frontend/artiq_flash.py +++ b/artiq/frontend/artiq_flash.py @@ -129,6 +129,7 @@ def main(): ]) finally: if conv: + os.close(bin_handle) os.unlink(bin)