Commit 6fb98a5d authored by Julien Jerphanion's avatar Julien Jerphanion

Don't free user provide numpy array data

parent f68236da
...@@ -179,11 +179,7 @@ cdef cypclass KDTree: ...@@ -179,11 +179,7 @@ cdef cypclass KDTree:
void __dealloc__(self): void __dealloc__(self):
printf("Deallocating KDTree datastructures\n")
free(self.data_ptr)
free(self.indices_ptr) free(self.indices_ptr)
printf("Done deallocating KDTree datastructures\n")
# XXX It sometimes blocks over here and then segfaults
cdef public int main() nogil: cdef public int main() nogil:
# Entry point for the compiled binary file # Entry point for the compiled binary file
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment