[WIN32SS] Don't leak memory on failure in IntGdiWidenPath().

CID 1441350
This commit is contained in:
Pierre Schweitzer 2018-11-16 21:42:42 +01:00
parent 699af9f62a
commit 6416ee982f
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -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;