mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 11:48:31 +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)
|
if (hKey != INVALID_HANDLE_VALUE)
|
||||||
RegCloseKey(hKey);
|
RegCloseKey(hKey);
|
||||||
|
|
||||||
|
if (Buffer && !ret)
|
||||||
|
MyFree(Buffer);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue