diff options
Diffstat (limited to 'ffi/lang/python/sequoia')
-rw-r--r-- | ffi/lang/python/sequoia/glue.py | 2 | ||||
-rw-r--r-- | ffi/lang/python/sequoia/sequoia_build.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/ffi/lang/python/sequoia/glue.py b/ffi/lang/python/sequoia/glue.py index 4b74d609..799c550c 100644 --- a/ffi/lang/python/sequoia/glue.py +++ b/ffi/lang/python/sequoia/glue.py @@ -84,7 +84,7 @@ class SQObject(object): def sq_str(s): t = ffi.string(s).decode() - lib.sq_string_free(s) + lib.free(s) return t _str = sq_str diff --git a/ffi/lang/python/sequoia/sequoia_build.py b/ffi/lang/python/sequoia/sequoia_build.py index 5295243a..07dd5bb6 100644 --- a/ffi/lang/python/sequoia/sequoia_build.py +++ b/ffi/lang/python/sequoia/sequoia_build.py @@ -22,6 +22,9 @@ ffibuilder.set_source('_sequoia', # cffi magic to make time_t work. ffibuilder.cdef('typedef int... time_t;') +# free(3) +ffibuilder.cdef('void free (void *ptr);') + try: ffibuilder.cdef(defs, override=True) except error.CDefError as e: |