mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[WIN32K]
fix a memory leak in error case svn path=/trunk/; revision=67383
This commit is contained in:
@@ -150,8 +150,12 @@ NtGdiGetDeviceGammaRamp(
|
||||
}
|
||||
|
||||
Ret = IntGetDeviceGammaRamp((HDEV)dc->ppdev, SafeRamp);
|
||||
|
||||
if (!Ret) return Ret;
|
||||
if (!Ret)
|
||||
{
|
||||
DC_UnlockDc(dc);
|
||||
ExFreePoolWithTag(SafeRamp, GDITAG_ICM);
|
||||
return Ret;
|
||||
}
|
||||
|
||||
_SEH2_TRY
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user