diff --git a/python/classy.pyx b/python/classy.pyx index eefdc2cc0..1e52511f4 100644 --- a/python/classy.pyx +++ b/python/classy.pyx @@ -1092,6 +1092,9 @@ cdef class Class: for index in range(timesteps): background[names[i]][index] = data[index*number_of_titles+i] + free(titles) + free(data) + return background def get_thermodynamics(self): @@ -1128,6 +1131,9 @@ cdef class Class: for index in range(timesteps): thermodynamics[names[i]][index] = data[index*number_of_titles+i] + free(titles) + free(data) + return thermodynamics def get_primordial(self): @@ -1165,6 +1171,9 @@ cdef class Class: for index in range(timesteps): primordial[names[i]][index] = data[index*number_of_titles+i] + free(titles) + free(data) + return primordial @@ -1319,6 +1328,9 @@ cdef class Class: else: spectra[ic_key] = tmpdict + free(titles) + free(data) + return spectra