Skip to content

Commit f5f932f

Browse files
committed
fix handle leak
1 parent 9a95695 commit f5f932f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Tools/dotnet-user-secrets/src/Internal/SetCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public sealed class FromStdInStrategy : ICommand
6161
public void Execute(CommandContext context)
6262
{
6363
// parses stdin with the same parser that Microsoft.Extensions.Configuration.Json would use
64-
var provider = new ReadableJsonConfigurationProvider();
64+
using var provider = new ReadableJsonConfigurationProvider();
6565
using (var stream = new MemoryStream())
6666
{
6767
using (var writer = new StreamWriter(stream, Encoding.Unicode, 1024, true))

0 commit comments

Comments
 (0)