]> granicus.if.org Git - graphviz/commitdiff
neatogen computeScaleXY: fix memory leak
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Dec 2022 05:00:31 +0000 (21:00 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 6 Dec 2022 05:00:31 +0000 (21:00 -0800)
lib/neatogen/constraint.c

index 95d1f30717d49e31d52ca0a8d90ac4a37205936c..5658515a5fb3740fbbc98f05a6b79d64d7532a15 100644 (file)
@@ -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;
 }