Fixed TNG memory alignment problem and reset pointers.
authorMagnus Lundborg <lundborg.magnus@gmail.com>
Tue, 19 Aug 2014 15:26:00 +0000 (17:26 +0200)
committerGerrit Code Review <gerrit@gerrit.gromacs.org>
Thu, 21 Aug 2014 15:33:05 +0000 (17:33 +0200)
commit898166c3c76a86fa88f84444babd3f8bce2fd34d
tree9044c811da5437d680ab2b3ee3953d4b470d67b2
parentbad36c3375184c304bad2d1cff7801415e1b4dbd
Fixed TNG memory alignment problem and reset pointers.

This is a temporary fix to the memory alignment problems on some
platforms. In the main TNG repository the whole I/O system is
rewritten to address this problem. This fix is to avoid the
problems without making too large changes.

There are also some pointers that were not reset after memory
was freed. This is also fixed in here.

This commit does not correspond to any commit in the TNG
repository.

Fixes #1542, #1546, #1547 and #1559.

Change-Id: I90a6406cccbc43fd57d4423c2b661019cf7763e8
src/external/tng_io/src/lib/tng_io.c