From 89516e3326c843b5a08c8d4de0487ce39dca6612 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 3 Dec 2017 10:47:05 +0100 Subject: [PATCH] fix resource leak Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/1f96c8a4d42715981c5bfb5200e726d7da368c02 Author: Jacek Jendrzej Date: 2017-12-03 (Sun, 03 Dec 2017) --- src/gui/update.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index 8db1a3ba3..eae27a8fe 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -649,6 +649,7 @@ int CFlashUpdate::exec(CMenuTarget* parent, const std::string &actionKey) c[0] = fgetc(f); printf("[update] Current partition: %s\n", c); } + fcolse(f); } // select partition