Fix segfault in gmx genrestr.
commitff41a4a4eccc017a8e408d5ed7efeacc9b23cd6a
authorKevin Boyd <kevin44boyd@gmail.com>
Fri, 3 Jul 2020 13:16:11 +0000 (3 13:16 +0000)
committerChristian Blau <cblau.mail@gmail.com>
Fri, 3 Jul 2020 13:16:11 +0000 (3 13:16 +0000)
tree8e96a6f95004d2177cdd1411c9bd83e694ad099b
parentff579ae821c59a4f5cc502062578ae0eab5786e6
Fix segfault in gmx genrestr.

A gmx_mtop_t going out of scope freed memory in a related structure.
Extended the life of the topology structure, and fixed memory leaks that
popped up in the ASAN build.
docs/release-notes/2020/2020.3.rst
src/gromacs/gmxpreprocess/genrestr.cpp
src/gromacs/gmxpreprocess/tests/CMakeLists.txt
src/gromacs/gmxpreprocess/tests/genrestr.cpp [new file with mode: 0644]
src/gromacs/gmxpreprocess/tests/refdata/GenRestrTest_SimpleRestraintsGenerated.xml [new file with mode: 0644]