Add code to close open file stream (#374)
author최종헌/Common Platform Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Tue, 8 Feb 2022 00:23:10 +0000 (09:23 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 8 Feb 2022 00:23:10 +0000 (09:23 +0900)
Change-Id: Ibd6ecd18c5d6ec44211aa69914e93f43699fc1fd

NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc

index ecef48b22f74f4dff6a6f4ce2bbf59cb3df1f318..d7f32a4b902606111961a47ac239d3a82579710f 100644 (file)
@@ -47,6 +47,7 @@ static void checkPrivilegeAndDisableIPv6(const char* pkgId, const std::string& r
                        } else {
                                _ERR("Failed to create file to disable IPv6 [%s]", pkgId);
                        }
+                       output.close();
                }
        }
 }