diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-06-09 06:46:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-06-09 06:46:18 -0700 |
commit | b2b2173b5c28b0d6b012b9369cedba37751d6a4b (patch) | |
tree | 12d382e0565c5650d13a2c18fe2d69eab409b22e /stream.h | |
parent | 3725601b209dee672d7bc63fcf0a33fb8af5a06a (diff) | |
download | txr-b2b2173b5c28b0d6b012b9369cedba37751d6a4b.tar.gz txr-b2b2173b5c28b0d6b012b9369cedba37751d6a4b.tar.bz2 txr-b2b2173b5c28b0d6b012b9369cedba37751d6a4b.zip |
ffi: leak fix on !HAVE_FFI builds.
The ffi_type_struct_destroy_op only frees
tft->ft if HAVE_FFI is true. But the object is allocated in
several places without regard for HAVE_FFI.
* ffi.c (ffi_struct_clone, make_ffi_type_struct,
make_ffi_type_union, ffi_array_clone, make_ffi_type_array): Do
not allocate a ffi_type object if HAVE_FFI is false.
Diffstat (limited to 'stream.h')
0 files changed, 0 insertions, 0 deletions