Skip to content

Commit

Permalink
ConfigXmlReader is an IDisposable; Dispose it (#103163)
Browse files Browse the repository at this point in the history
This was flagged by a static analysis tool. Is this necessary? Is this
safe to do?
  • Loading branch information
omajid authored Jun 13, 2024
1 parent 66298c7 commit 778b3ed
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected internal override void DeserializeElement(XmlReader reader, bool seria
}
}

ConfigXmlReader internalReader = new ConfigXmlReader(rawXml, sourceFileFullPath, lineOffset);
using ConfigXmlReader internalReader = new ConfigXmlReader(rawXml, sourceFileFullPath, lineOffset);
internalReader.Read();

if (internalReader.MoveToNextAttribute())
Expand Down

0 comments on commit 778b3ed

Please sign in to comment.