[python-arrayfire] 04/11: BUGFIX: Fixing issue with double free

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun May 1 19:50:22 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 72748526bebc5a89e550daef677bd01dca84c4da
Author: Pavan Yalamanchili <pavan at arrayfire.com>
Date:   Mon Apr 4 07:37:32 2016 -0400

    BUGFIX: Fixing issue with double free
---
 arrayfire/array.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arrayfire/array.py b/arrayfire/array.py
index d3f9e3b..660baef 100644
--- a/arrayfire/array.py
+++ b/arrayfire/array.py
@@ -475,6 +475,7 @@ class Array(BaseArray):
         """
         if self.arr.value:
             backend.get().af_release_array(self.arr)
+            self.arr.value = 0
 
     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