mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WIN32SS] Don't leak memory on failure in IntGdiWidenPath().
CID 1441350
This commit is contained in:
parent
699af9f62a
commit
6416ee982f
1 changed files with 1 additions and 0 deletions
|
@ -1777,6 +1777,7 @@ IntGdiWidenPath(PPATH pPath, UINT penWidth, UINT penStyle, FLOAT eMiterLimit)
|
|||
pStrokes = ExAllocatePoolWithTag(PagedPool, numStrokes * sizeof(*pStrokes), TAG_PATH);
|
||||
if (!pStrokes)
|
||||
{
|
||||
ExFreePoolWithTag(pOldStrokes, TAG_PATH);
|
||||
PATH_UnlockPath(flat_path);
|
||||
PATH_Delete(flat_path->BaseObject.hHmgr);
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue