mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-12-06 15:06:45 +01:00
Potential fix for pull request finding 'Missing Dispose call on local IDisposable'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
ef93f7417d
commit
d4541c3a46
1 file changed
+2
-1
@@ -51,7 +51,8 @@ internal class MimeKitUtils : IMimeKitUtils
|
||||
|
||||
var fixedBytes = PrependContentTypeHeader(bytes, contentTypeHeader[0]);
|
||||
|
||||
mimeMessageData = LoadFromStream(new MemoryStream(fixedBytes));
|
||||
using var stream = new MemoryStream(fixedBytes);
|
||||
mimeMessageData = LoadFromStream(stream);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user