Skip to content

Commit c52c8f6

Browse files
authored
fix File.Create on Init() not disposed (#532)
1 parent 784a50f commit c52c8f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/EasyCaching.Disk/DefaultDiskCachingProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private void Init()
115115

116116
if (!File.Exists(path))
117117
{
118-
File.Create(path);
118+
using (File.Create(path)) {}
119119
}
120120

121121
InitCacheKey();

0 commit comments

Comments
 (0)