From 9e132f69c37834768ee0e5c18eeb70a7a727a0ec Mon Sep 17 00:00:00 2001 From: sdc <873892935@qq.com> Date: Tue, 23 Nov 2021 13:41:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=8C=E6=AD=A5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=9C=A8=E5=B5=8C=E5=85=A5?= =?UTF-8?q?=E5=BC=8F=E8=AE=BE=E5=A4=87=E4=B8=AD=E5=87=BA=E7=8E=B0=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=A4=B1=E6=95=88=E7=9A=84=E6=83=85=E5=86=B5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/ini-wrapper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/ini-wrapper.c b/core/ini-wrapper.c index 32e5a4b..9bcab3f 100644 --- a/core/ini-wrapper.c +++ b/core/ini-wrapper.c @@ -312,8 +312,12 @@ int32_t inifile_config_save(const int8_t *ini_filename, struct ini_config *confi // iniparser_dump(d, stdout); iniparser_dump_ini(d, fp); + fflush(fp); + fclose(fp); + sync(); + iniparser_freedict(d); return 0; -- Gitee