From 909efb3d8e46ec4348c85d266250a682b3a4b273 Mon Sep 17 00:00:00 2001 From: Greg Eisenhauer Date: Wed, 27 Dec 2023 21:39:42 +1100 Subject: [PATCH] minblocks leaks in bpls --- source/utils/bpls/bpls.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/utils/bpls/bpls.cpp b/source/utils/bpls/bpls.cpp index b4271e3222..fd263b5748 100644 --- a/source/utils/bpls/bpls.cpp +++ b/source/utils/bpls/bpls.cpp @@ -3069,7 +3069,9 @@ size_t relative_to_absolute_step(core::Engine *fp, core::Variable *variable, if (minBlocks) { - return minBlocks->Step; + size_t Step = minBlocks->Step; + delete minBlocks; + return Step; } const std::map> &indices =