mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[WIN32SS] Fix some memory leaks (introduced in 21ddeb76d9)
This commit is contained in:
@@ -596,11 +596,13 @@ LDEVOBJ_bBuildDevmodeList(
|
||||
if (!pdminfo)
|
||||
{
|
||||
ERR("Could not allocate devmodeinfo\n");
|
||||
ExFreePoolWithTag(pdm, GDITAG_DEVMODE);
|
||||
continue;
|
||||
}
|
||||
|
||||
pdminfo->cbdevmode = cbSize;
|
||||
RtlCopyMemory(pdminfo->adevmode, pdm, cbSize);
|
||||
ExFreePoolWithTag(pdm, GDITAG_DEVMODE);
|
||||
|
||||
/* Attach the mode info to the device */
|
||||
pdminfo->pdmiNext = pGraphicsDevice->pdevmodeInfo;
|
||||
|
||||
Reference in New Issue
Block a user