diff --git a/package/MDAnalysis/lib/formats/libdcd.pyx b/package/MDAnalysis/lib/formats/libdcd.pyx index 547e09c2f86..d6e64a1794c 100644 --- a/package/MDAnalysis/lib/formats/libdcd.pyx +++ b/package/MDAnalysis/lib/formats/libdcd.pyx @@ -102,6 +102,8 @@ cdef class DCDFile: def close(self): if self.is_open: + # In case there are fixed atoms we should free the memory again. + # Both pointers are guaranted to be non NULL if either one is. if self.freeind != NULL: close_dcd_read(self.freeind, self.fixedcoords);