mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 08:20:27 +00:00
[SETUPAPI]
Fix a memory leak CID 1250296 svn path=/trunk/; revision=69669
This commit is contained in:
parent
ca111f1d01
commit
bd3ef669f3
1 changed files with 3 additions and 0 deletions
|
@ -552,6 +552,9 @@ cleanup:
|
|||
if (hKey != INVALID_HANDLE_VALUE)
|
||||
RegCloseKey(hKey);
|
||||
|
||||
if (Buffer && !ret)
|
||||
MyFree(Buffer);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue