From d82e6396cef0d56b141055cbbc3db792d272f202 Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Mon, 24 Dec 2012 13:23:49 +0100 Subject: Fix memory freeing --- python/src/sa/_sa.pxd | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'python/src/sa/_sa.pxd') diff --git a/python/src/sa/_sa.pxd b/python/src/sa/_sa.pxd index 5c1fce27..da945f30 100644 --- a/python/src/sa/_sa.pxd +++ b/python/src/sa/_sa.pxd @@ -16,7 +16,9 @@ cdef class FloatList: cdef int increment cdef int len cdef float* arr + cdef bint mmaped cdef object memory + cdef void _free_mem(self) cdef void set(self, int i, float v) cdef void write_handle(self, FILE* f) cdef void read_handle(self, FILE* f) @@ -27,11 +29,13 @@ cdef class IntList: cdef int increment cdef int len cdef int* arr + cdef bint mmaped cdef object memory cdef void set(self, int i, int val) cdef void _append(self, int val) cdef void _extend_arr(self, int* other, int other_len) cdef void _clear(self) + cdef void _free_mem(self) cdef void write_handle(self, FILE* f) cdef void read_handle(self, FILE* f) cdef void read_mmaped(self, MemoryMap buf) -- cgit v1.2.3