1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00
Files
archived-php-src/ext
Niels Dossche 30ed81314b Fix GH-18139: Memory leak when overriding some settings via readline_info()
The reason why freeing was not done yet is because the pointer in these
variables may be:
- Static data set by the readline/libedit library initially, not heap
  data.
- Data set by another thread. Although the libraries appear to be not
  thread-safe anyway.

To solve this, introduce some TLS variables to hold a pointer for us
when we override the settings, such that we can free them and are
certain they are allocated by us.

Closes GH-20794.
2026-01-02 13:04:13 +01:00
..
2025-12-05 22:31:14 +00:00
2025-10-15 19:39:12 +02:00
2025-12-15 23:52:00 +01:00
2025-11-06 21:29:43 +01:00
2025-09-21 14:25:52 +01:00
2025-10-15 20:24:22 +02:00
2025-02-17 10:27:33 +03:00
2025-12-03 20:22:38 +00:00
2025-12-04 23:14:01 +00:00
2025-07-22 15:52:29 +02:00
2025-10-29 14:38:35 -03:00
2025-12-22 12:12:42 +01:00
2025-12-08 22:30:16 +01:00
2025-06-09 11:25:41 +02:00
2025-12-15 20:13:03 +03:00
2025-11-07 18:54:45 +01:00
2025-12-16 15:35:25 +01:00
2025-11-04 20:20:26 +01:00
2025-12-22 12:54:36 +00:00
2025-04-11 23:36:12 +02:00
2025-10-02 19:39:25 +02:00
2025-12-14 11:58:41 +00:00
2025-11-05 20:22:39 +01:00
2025-09-29 16:08:31 +02:00
2025-10-01 12:58:50 +02:00
2025-11-18 20:31:15 +01:00
2025-12-28 00:21:56 +01:00