php-src/ext/ffi
Niels Dossche c0de7214aa
Fix GH-14286 (ffi enum type (when enum has no name) make memory leak)
For top-level anonymous type definition we never store the declaration anywhere
else nor the type anywhere else.
The declaration keeps owning the type and it goes out of scope.
For anonymous fields this gets handled by the add_anonymous_field code that
removes the type from the declaration.
This patch does something similar in the parsing code when it is
detected we're dealing with an anonymous enum in a top-level declaration.

Closes GH-14839.
2024-07-22 17:44:47 +02:00
..
tests Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00
config.m4 ext/ffi: Remove symbol check for ffi_open 2019-06-03 09:19:25 +02:00
config.w32 Implement #78270: Support __vectorcall convention with FFI 2019-10-29 08:57:43 +01:00
CREDITS
ffi.c Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00
ffi.g Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00
ffi.stub.php Customize the link of some constants in the manual 2023-01-19 09:05:32 +01:00
ffi_arginfo.h Customize the link of some constants in the manual 2023-01-19 09:05:32 +01:00
ffi_parser.c Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00
php_ffi.h Fix GH-14286 (ffi enum type (when enum has no name) make memory leak) 2024-07-22 17:44:47 +02:00