Campbell Barton
6a0f98aeef
Fix memory leak in PyC_ExceptionBuffer for Py 3.12
...
Non-matching calls to PyErr_Fetch/Restore cause a leak in v3.12,
so ensure calls are symmetrical or avoid where possible.
Simplify extraction of the exception buffer.
- Only overwrite the stderr (the stdio isn't used).
- Simplify pyc_exception_buffer_handle_system_exit usage.
- Remove goto's.
Also simplify calling conventions for PyC_ExceptionBuffer functions.
- They must be called when an error has occurred.
- Always return a string, never null since a null return value would
only happened in rare/unexpected cases which wasn't being checked
for by some callers, leading to potential crashes.
2023-09-18 22:09:19 +10:00
..
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-18 22:09:19 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-18 22:09:19 +10:00
2023-09-17 09:05:40 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-30 14:08:56 +10:00
2023-08-16 00:20:26 +10:00
2023-09-05 12:56:41 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-09-18 17:38:55 +10:00
2023-08-21 10:05:45 +10:00
2023-09-18 22:09:19 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-09-14 13:25:24 +10:00
2023-08-16 00:20:26 +10:00
2023-09-06 00:48:50 +02:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00
2023-08-16 00:20:26 +10:00