From 02ee5cf713e92c0be24d37bf7b9a65a341f43f07 Mon Sep 17 00:00:00 2001 From: jzxc95 <907297917@qq.com> Date: Fri, 10 Mar 2023 09:46:06 +0800 Subject: [PATCH] =?UTF-8?q?fopen=E9=87=8A=E6=94=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/tab-pages/tabpage.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/frontend/tab-pages/tabpage.cpp b/src/frontend/tab-pages/tabpage.cpp index 91447f8c..03d4f92c 100644 --- a/src/frontend/tab-pages/tabpage.cpp +++ b/src/frontend/tab-pages/tabpage.cpp @@ -226,6 +226,9 @@ int TabPage::getCurrentLoadRate(QString dev, long *save_rate, long *tx_rate) } } + fclose(net_dev_file); + net_dev_file = nullptr; + return 0; //θΏ”ε›žζˆεŠŸ }