Skip to content

Commit f879452

Browse files
Update src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 538d2eb commit f879452

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ public static T Parse<T>(string input,
196196
{
197197
format ??= InspectInputFormat(input);
198198
settings ??= new OpenApiReaderSettings();
199-
var stream = new MemoryStream(Encoding.UTF8.GetBytes(input));
199+
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(input));
200200
return Load<T>(stream, version, format, out diagnostic, settings);
201201
}
202202

0 commit comments

Comments
 (0)