diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index b6ec88d0ccb..5a3356aa14c 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -881,6 +881,7 @@ static GpStatus format_string_callback(HDC dc, start = (char *)ph; if (!ph || !lengthen_path(path, len / sizeof(POINTFX))) { + heap_free(ph); status = OutOfMemory; break; }