Only free topology when allocated
authorPaul Bauer <paul.bauer.q@gmail.com>
Wed, 14 Mar 2018 09:15:42 +0000 (10:15 +0100)
committerMark Abraham <mark.j.abraham@gmail.com>
Fri, 16 Mar 2018 20:59:53 +0000 (21:59 +0100)
commit6a2e469b9df31e488338088e7dc2fd558602bd81
tree3f91d3b35f343684cb5b1f0187167366e7da5fb8
parent9a1288fa0e073368c5deffdd414e920975d925fa
Only free topology when allocated

Fix trjconv so that the topology only gets free'd when it has been
previously allocated.

Fixes #2430

Change-Id: Idc9a4219d988e1794ef86f7cc79f0d00750394ca
src/gromacs/gmxana/gmx_trjconv.cpp