diff options
author | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-12-24 13:23:49 +0100 |
---|---|---|
committer | Victor Chahuneau <vchahune@cs.cmu.edu> | 2012-12-24 13:23:49 +0100 |
commit | d82e6396cef0d56b141055cbbc3db792d272f202 (patch) | |
tree | 1d3759390a50ad545981a20d8f5cb2dd4c93a78a /python/src/sa/_sa.pxd | |
parent | e66ce4f37f98af2e23c800c7dc6fd8fc83d07353 (diff) |
Fix memory freeingsa_mmap
Diffstat (limited to 'python/src/sa/_sa.pxd')
-rw-r--r-- | python/src/sa/_sa.pxd | 4 |
1 files changed, 4 insertions, 0 deletions
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) |