From 0801d43e0d210681938cace212d575dab0326ae3 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 5 Dec 2022 21:00:31 -0800 Subject: [PATCH] neatogen computeScaleXY: fix memory leak --- lib/neatogen/constraint.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/neatogen/constraint.c b/lib/neatogen/constraint.c index 95d1f3071..5658515a5 100644 --- a/lib/neatogen/constraint.c +++ b/lib/neatogen/constraint.c @@ -763,6 +763,7 @@ static pointf computeScaleXY(pointf *aarr, size_t m) { scale.x = barr[best].x; scale.y = barr[best].y; + free(barr); return scale; } -- 2.40.0