[python-arrayfire] 77/250: BUGFIX: deleting empty arrays was causing segmentation faults
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:33 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.
commit b43deb5b9cc84dda6e4c6e18fb934ab401e1cdf0
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date: Fri Aug 28 15:18:14 2015 -0400
BUGFIX: deleting empty arrays was causing segmentation faults
- Updated the check in __del__ to reflect Array.arr change to c_void_p
---
arrayfire/array.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arrayfire/array.py b/arrayfire/array.py
index 7add8db..adcef8a 100644
--- a/arrayfire/array.py
+++ b/arrayfire/array.py
@@ -183,7 +183,7 @@ class Array(BaseArray):
return out
def __del__(self):
- if (self.arr.value != 0):
+ if self.arr.value:
clib.af_release_array(self.arr)
def device_ptr(self):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git
More information about the debian-science-commits
mailing list