Skip to content

Commit c52c8f6

Browse files
authoredApr 25, 2024
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

+1-1
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)
Failed to load comments.