Skip to content

Commit 56742b9

Browse files
committed
Dispose stream in caller method
1 parent 28e1ecd commit 56742b9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Microsoft.OpenApi/Reader/OpenApiModelFactory.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public static async Task<ReadResult> LoadAsync(Stream input, string format = nul
128128
if (!settings.LeaveStreamOpen)
129129
{
130130
input.Dispose();
131+
preparedStream.Dispose();
131132
}
132133

133134
return result;

0 commit comments

Comments
 (0)