Module: wine Branch: master Commit: 41d923a49f9e092aafd0771e80d47ea63ac5dec7 URL: https://gitlab.winehq.org/wine/wine/-/commit/41d923a49f9e092aafd0771e80d47ea...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Sun Dec 3 00:14:48 2023 +0800
gdiplus: Fix a memory leak (Coverity).
---
dlls/gdiplus/graphicspath.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c index 1804efdba54..24c2888cfe8 100644 --- a/dlls/gdiplus/graphicspath.c +++ b/dlls/gdiplus/graphicspath.c @@ -2236,6 +2236,7 @@ static void add_anchor(const GpPointF *endpoint, const GpPointF *nextpoint, widen_closed_figure(tmp_points, 0, custom->pathdata.Count - 1, pen, pen_width, last_point); else widen_open_figure(tmp_points, 0, custom->pathdata.Count - 1, pen, pen_width, custom->strokeEndCap, NULL, custom->strokeStartCap, NULL, last_point); + free(tmp_points); } else {