From c8b0185c8ef49ee0abdb2076ae5148d2d7fabe02 Mon Sep 17 00:00:00 2001 From: Jeff Curtis Date: Fri, 10 Nov 2023 23:09:46 -0600 Subject: [PATCH] add deletes --- src/aero_state.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/aero_state.hpp b/src/aero_state.hpp index aefb2166..36567950 100644 --- a/src/aero_state.hpp +++ b/src/aero_state.hpp @@ -349,6 +349,9 @@ struct AeroState { exclude_arr ); + delete[] include_arr; + delete[] exclude_arr; + return diameters; } @@ -400,6 +403,9 @@ struct AeroState { exclude_arr ); + delete[] include_arr; + delete[] exclude_arr; + return volumes; } @@ -491,6 +497,10 @@ struct AeroState { group_arr ); + delete[] include_arr; + delete[] exclude_arr; + delete[] group_arr; + return std::make_tuple(d_alpha, d_gamma, chi); }