[h5py] 164/455: Temporary fix for Windows runtime issue

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:19:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 1.3.0
in repository h5py.

commit b801717c38a7515cfcf9f20dbc908b567fb8b8a5
Author: andrewcollette <andrew.collette at gmail.com>
Date:   Tue Nov 25 05:45:24 2008 +0000

    Temporary fix for Windows runtime issue
---
 h5py/h5t.pyx | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/h5py/h5t.pyx b/h5py/h5t.pyx
index 929ccb4..cee8f67 100644
--- a/h5py/h5t.pyx
+++ b/h5py/h5t.pyx
@@ -576,7 +576,9 @@ cdef class TypeOpaqueID(TypeID):
             tag = buf
             return tag
         finally:
-            free(buf)
+            IF UNAME_SYSNAME != "Windows":
+                # Windows HDF5 uses separate C runtime.
+                free(buf)
 
     cdef object py_dtype(self):
         # Numpy translation function for opaque types
@@ -951,7 +953,9 @@ cdef class TypeCompositeID(TypeID):
             assert name != NULL
             pyname = name
         finally:
-            free(name)
+            IF UNAME_SYSNAME != "Windows":
+                # Windows HDF5 uses a different C runtime.  We're f*cked.
+                free(name)
 
         return pyname
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list