This is an automated email from the ASF dual-hosted git repository.

haonan pushed a commit to branch try_fix_python
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/try_fix_python by this push:
     new a0dcd8be fix warning
a0dcd8be is described below

commit a0dcd8be61c952469960b673d069c509fa90a9a8
Author: HTHou <[email protected]>
AuthorDate: Mon Aug 5 22:08:03 2024 +0800

    fix warning
---
 python/tsfile/tsfile_pywrapper.pyx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/tsfile/tsfile_pywrapper.pyx 
b/python/tsfile/tsfile_pywrapper.pyx
index 0530435b..5f1f505f 100644
--- a/python/tsfile/tsfile_pywrapper.pyx
+++ b/python/tsfile/tsfile_pywrapper.pyx
@@ -87,7 +87,7 @@ cdef class tsfile_reader:
             if not c_columns[i]:
                 for j in range(i):
                     free(c_columns[j])
-                free(c_columns)
+                free(<void*>c_columns)
                 raise MemoryError("Failed to allocate memory for columns")
             column_binary = columns[i].encode('utf-8')
             column = PyBytes_AsString(column_binary)
@@ -105,7 +105,7 @@ cdef class tsfile_reader:
 
         for i in range(len(columns)):
             free(c_columns[i])
-        free(c_columns)
+        free(<void*>c_columns)
         
         
     def read_tsfile(self):

Reply via email to