From 046fc19cd1ce053ad3f1b08312aa97a447b158f3 Mon Sep 17 00:00:00 2001 From: Alex Henrie Date: Fri, 23 Dec 2016 01:18:42 -0700 Subject: [PATCH] gdiplus: Fix memory leak in format_string_callback error path. Signed-off-by: Alex Henrie Signed-off-by: Vincent Povirk Signed-off-by: Alexandre Julliard --- dlls/gdiplus/graphicspath.c | 1 + 1 file changed, 1 insertion(+) 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; }