mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
twain_32/tests: Don't leak memory on an error path (Smatch).
This commit is contained in:
parent
3415f7788c
commit
f02f39f60c
@ -87,7 +87,10 @@ static TW_HANDLE alloc_and_set_onevalue(TW_UINT32 val, TW_UINT16 type)
|
||||
GlobalUnlock(hcontainer);
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalFree(hcontainer);
|
||||
hcontainer = 0;
|
||||
}
|
||||
}
|
||||
return hcontainer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user