mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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:
parent
5aaead3fdb
commit
88e1675ace
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue