Fix memory leak in default index group creation
commit085ea0e36155e93ac333e5d86bdaebdff1c44cb7
authorTeemu Murtola <teemu.murtola@gmail.com>
Wed, 29 Oct 2014 18:40:34 +0000 (29 20:40 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 30 Oct 2014 18:45:02 +0000 (30 19:45 +0100)
tree63573cd9a667964c6417ea2f4be8e61c7e1274fd
parentaa5bd3874753100d85c0e087b7a65b5c562e5d7c
Fix memory leak in default index group creation

Temporary memory should be deallocated in the scope where it is
allocated, not only within some conditional paths.

Change-Id: I102d2b82ba531c25dd26728729b46c0b99c124e4
src/gromacs/topology/index.cpp