Fix leak in legacymdrunoptions
authorKevin Boyd <kevin.boyd@uconn.edu>
Fri, 21 Dec 2018 00:37:18 +0000 (19:37 -0500)
committerBerk Hess <hess@kth.se>
Fri, 21 Dec 2018 14:27:38 +0000 (15:27 +0100)
Free gmx_output_env_t in class destructor

Change-Id: I4eb6520ac56a9469c2949893888bcc2db21b647b

src/gromacs/mdrun/legacymdrunoptions.cpp

index de685e90348bfff377e9fe6cf20efa9fc2d516d6..188d4b3f365dcb5c933376cd207d38e50f3acfc8 100644 (file)
@@ -216,6 +216,7 @@ LegacyMdrunOptions::~LegacyMdrunOptions()
     {
         done_commrec(cr);
     }
+    output_env_done(oenv);
     done_multisim(ms);
 }