Since struct(GALAXY_OUTPUT) is not aligned to 8 bytes it contains a pad.
When writing out the galaxies uninitialized bytes are then written out.
This commit fixes this by initializing the struct (including the pad) to
0.
Also properly free the GSL random_generator.
Valgrind produces no memory leaks, warnings or errors.
Since struct(GALAXY_OUTPUT) is not aligned to 8 bytes it contains a pad. When writing out the galaxies uninitialized bytes are then written out. This commit fixes this by initializing the struct (including the pad) to 0.
Also properly free the GSL random_generator.
Valgrind produces no memory leaks, warnings or errors.