From a572142e6f4088eddf0f48e8a5d76232a0ee23ec Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Mon, 12 Apr 2021 10:25:10 -0400 Subject: [PATCH] fix inconsistent new/delete --- src/MC/fix_charge_regulation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MC/fix_charge_regulation.cpp b/src/MC/fix_charge_regulation.cpp index 0aa3def153..797d7fb5b0 100644 --- a/src/MC/fix_charge_regulation.cpp +++ b/src/MC/fix_charge_regulation.cpp @@ -130,7 +130,7 @@ FixChargeRegulation::~FixChargeRegulation() { delete random_equal; delete random_unequal; - delete idftemp; + delete[] idftemp; if (group) { int igroupall = group->find("all");