From 3be45170df9f2f5723a086d1cc1dcbd7132b2a8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Gr=C3=B6n?= Date: Sat, 28 Dec 2019 12:27:49 +0100 Subject: [PATCH] Fix memory leak in radTInteraction::EmptyVectOfPtrToListsOfTrans It seems that iterating starting from 1 is a simple typo here. It causes the two objects that are first in these two arrays not to be deallocated. The objects were allocated in radTInteraction::CountMainRelaxElems. --- cpp/src/core/radintrc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/src/core/radintrc.h b/cpp/src/core/radintrc.h index 3797eec8..efbf7862 100644 --- a/cpp/src/core/radintrc.h +++ b/cpp/src/core/radintrc.h @@ -266,14 +266,14 @@ inline void radTInteraction::PushFrontNativeElemTransList(radTg3d* g3dPtr, radTl inline void radTInteraction::EmptyVectOfPtrToListsOfTrans() { - for(unsigned i=1; i