Alex Henrie : gdiplus: Fix memory leak in format_string_callback error path.

Alexandre Julliard julliard at winehq.org
Tue Jan 3 15:31:04 CST 2017


Module: wine
Branch: master
Commit: 046fc19cd1ce053ad3f1b08312aa97a447b158f3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=046fc19cd1ce053ad3f1b08312aa97a447b158f3

Author: Alex Henrie <alexhenrie24 at 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 at gmail.com>
Signed-off-by: Vincent Povirk <vincent at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at 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;
         }




More information about the wine-cvs mailing list