mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 02:15:43 +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);
|
wcscpy(&key[6], pwszCLSID);
|
||||||
AddClassKeyToArray(key, hKeys, &cKeys);
|
AddClassKeyToArray(key, hKeys, &cKeys);
|
||||||
|
CoTaskMemFree(pwszCLSID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AddClassKeyToArray(L"Folder", hKeys, &cKeys);
|
AddClassKeyToArray(L"Folder", hKeys, &cKeys);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue