Alex Henrie : gdiplus: Fix memory leak in format_string_callback error path.
Module: wine Branch: master Commit: 046fc19cd1ce053ad3f1b08312aa97a447b158f3 URL: http://source.winehq.org/git/wine.git/?a=commit;h=046fc19cd1ce053ad3f1b08312... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Fri Dec 23 01:18:42 2016 -0700 gdiplus: Fix memory leak in format_string_callback error path. Signed-off-by: Alex Henrie <alexhenrie24(a)gmail.com> Signed-off-by: Vincent Povirk <vincent(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/gdiplus/graphicspath.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index b6ec88d..5a3356a 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; }
participants (1)
-
Alexandre Julliard