mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 20:03:12 +00:00
[WIN32SS] Fix some memory leaks (introduced in 21ddeb76d9
)
This commit is contained in:
parent
f63e8f8a03
commit
aa80cfb46e
1 changed files with 2 additions and 0 deletions
|
@ -596,11 +596,13 @@ LDEVOBJ_bBuildDevmodeList(
|
||||||
if (!pdminfo)
|
if (!pdminfo)
|
||||||
{
|
{
|
||||||
ERR("Could not allocate devmodeinfo\n");
|
ERR("Could not allocate devmodeinfo\n");
|
||||||
|
ExFreePoolWithTag(pdm, GDITAG_DEVMODE);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
pdminfo->cbdevmode = cbSize;
|
pdminfo->cbdevmode = cbSize;
|
||||||
RtlCopyMemory(pdminfo->adevmode, pdm, cbSize);
|
RtlCopyMemory(pdminfo->adevmode, pdm, cbSize);
|
||||||
|
ExFreePoolWithTag(pdm, GDITAG_DEVMODE);
|
||||||
|
|
||||||
/* Attach the mode info to the device */
|
/* Attach the mode info to the device */
|
||||||
pdminfo->pdmiNext = pGraphicsDevice->pdevmodeInfo;
|
pdminfo->pdmiNext = pGraphicsDevice->pdevmodeInfo;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue