Fix memory handling in gmx dump of TNG files
commite8a1370403a41ab749e2f31ebbdc7b8472b7135d
authorMark Abraham <mark.j.abraham@gmail.com>
Mon, 5 Dec 2016 22:54:01 +0000 (5 23:54 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 7 Dec 2016 00:11:30 +0000 (7 01:11 +0100)
tree091d4de442ccaa4420240f3b11f562ac9e9778fd
parentb2ed78d72a9609a4dfa6a37562847f57ddac0e51
Fix memory handling in gmx dump of TNG files

Calling code in dump.cpp did not free the memory used in each loop
over different TNG data blocks. This is also more efficiently and
simply done with srenew, along with a final sfree.

Change-Id: I0fbfdc9acf3bc5f498ec3ec9b15da1c59bf4c271
src/gromacs/fileio/tngio_for_tools.cpp
src/gromacs/tools/dump.cpp