Description
Description
dotnet 6.0
File: /src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/SAM/SAMStoreCtx.cs:592
Problem: SDSUtils.BuildDirectoryEntry(_ctxBase.Path, _credentials, _authTypes) is not disposed at the end of the function
Reproduction Steps
-
Role: detected
detected
[SAMStoreCtx.cs:[592:0]] -
Role: tracepoint
2.1 created in method System.DirectoryServices.AccountManagement.SDSUtils.BuildDirectoryEntry(string, System.DirectoryServices.AccountManagement.NetCred, System.DirectoryServices.AuthenticationTypes)
[SAMStoreCtx.cs:[592:40]]
2.2 no escape
[SAMStoreCtx.cs:[592:40]]
2.3 return
[SAMStoreCtx.cs:[607:20]]
Expected behavior
memory leak
Actual behavior
memory leak
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
Found by Linux Verification Center (linuxtesting.org) with SVACE.