Skip to content

Commit e3049a6

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

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
@@ -174,7 +174,7 @@ public static ReadResult Parse(string input,
174174
settings ??= new OpenApiReaderSettings();
175175

176176
// Copy string into MemoryStream
177-
var stream = new MemoryStream(Encoding.UTF8.GetBytes(input));
177+
using var stream = new MemoryStream(Encoding.UTF8.GetBytes(input));
178178

179179
return InternalLoad(stream, format, settings);
180180
}

0 commit comments

Comments
 (0)