You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix S3966 FP: Rule does not recognize that a new instance is created after the disposal #9799
This code generates S3966 erroneously detecting f has already been disposed in the 'finally' block and not realising a new instance was assigned in the 'if'.
changed the title [-]NET-3470 Fix S3966 FP: Detects[/-][+]Fix S3966 FP: Rule does not recognize that a new instance is created after the disposal[/+]on Mar 25, 2026
Activity
mary-georgiou commentedon Mar 25, 2026
Hello @paulhickman-ec,
I confirm this is an FP.
thanks for the report.
[-]Fix S3966 FP: Detects[/-][+]NET-3470 Fix S3966 FP: Detects[/+]github-actions commentedon Mar 25, 2026
Internal ticket NET-3470
[-]NET-3470 Fix S3966 FP: Detects[/-][+]Fix S3966 FP: Rule does not recognize that a new instance is created after the disposal[/+]