kostrzewa/tmLQCD — comment on commit c28322a887771987cfa5ddbb056e1365c7b9267a
File:  line 0
By deuzeman:

Hmm. Any idea where it segfaults? If no fields have been allocated, shouldn't `g_gauge_buffers.stack` be -1? Then there should just be a free of `g_gauge_buffers.reserve`, which should be valid.

I do now realize that this construction will leak some memory, because it should have read `for (unsigned int ctr = 0; ctr <= (g_gauge_buffers.stack); ++ctr)` or `for (unsigned int ctr = 0; ctr <= (g_gauge_buffers.allocated); ++ctr)`. So that should be corrected either way. But does something else need to be modified?