Should we dispose EventLog if there was an Interop.Errors.ERROR_INVALID_PARAMETER? #104053
Labels
area-System.Diagnostics.EventLog
needs-further-triage
Issue has been initially triaged, but needs deeper consideration or reconsideration
question
Answer questions and provide assistance, not an issue with source code or documentation.
Milestone
runtime/src/libraries/System.Diagnostics.EventLog/src/System/Diagnostics/EventLog.cs
Lines 651 to 664 in 9317db0
In the two conditions, we save the just-created
log
object. Should we calllog.Dispose()
if neither of those branches are taken?The text was updated successfully, but these errors were encountered: