Commit bdfc8650 authored by Sven Baars's avatar Sven Baars Committed by Alexandre Julliard

gdi32: Fix a leak on error path (Coverity).

parent 9cd65680
......@@ -1729,7 +1729,11 @@ static struct gdi_path *PATH_WidenPath(DC *dc)
pStrokes = HeapAlloc(GetProcessHeap(), 0, sizeof(*pStrokes));
else
pStrokes = HeapReAlloc(GetProcessHeap(), 0, pStrokes, numStrokes * sizeof(*pStrokes));
if(!pStrokes) return NULL;
if(!pStrokes)
{
free_gdi_path(flat_path);
return NULL;
}
pStrokes[numStrokes - 1] = alloc_gdi_path(0);
/* fall through */
case PT_LINETO:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment