mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[SHELL32] CGuidItemContextMenu: Fix pwszCLSID leak (#6607)
Fix memory leak. JIRA issue: CORE-19478 - Use CoTaskMemFree for pwszCLSID to avoid memory leak in CGuidItemContextMenu_CreateInstance function.
This commit is contained in:
@@ -116,6 +116,7 @@ HRESULT CGuidItemContextMenu_CreateInstance(PCIDLIST_ABSOLUTE pidlFolder,
|
||||
{
|
||||
wcscpy(&key[6], pwszCLSID);
|
||||
AddClassKeyToArray(key, hKeys, &cKeys);
|
||||
CoTaskMemFree(pwszCLSID);
|
||||
}
|
||||
}
|
||||
AddClassKeyToArray(L"Folder", hKeys, &cKeys);
|
||||
|
||||
Reference in New Issue
Block a user