Fix small leak in constraints
authorKevin Boyd <kevin.boyd@uconn.edu>
Sun, 13 Jan 2019 16:01:38 +0000 (11:01 -0500)
committerKevin Boyd <kevin.boyd@uconn.edu>
Sun, 13 Jan 2019 16:01:38 +0000 (11:01 -0500)
Change-Id: I68370a3cec7d39846c26c46f293fd8855540252d

src/gromacs/mdlib/constr.cpp

index 8fb124001a9f622fc5e082cfafb550bf4197017d..785d315c99d092680e2dba575b90c468c010d755 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright (c) 1991-2000, University of Groningen, The Netherlands.
  * Copyright (c) 2001-2004, The GROMACS development team.
- * Copyright (c) 2013,2014,2015,2016,2017,2018, by the GROMACS development team, led by
+ * Copyright (c) 2013,2014,2015,2016,2017,2018,2019, by the GROMACS development team, led by
  * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
  * and including many others, as listed in the AUTHORS file in the
  * top-level source directory and at http://www.gromacs.org.
@@ -1122,6 +1122,10 @@ Constraints::Impl::Impl(const gmx_mtop_t     &mtop_p,
 
 Constraints::Impl::~Impl()
 {
+    for (auto blocka : at2con_mt)
+    {
+        done_blocka(&blocka);
+    }
     if (bSettleErrorHasOccurred != nullptr)
     {
         sfree(bSettleErrorHasOccurred);