1
0
mirror of https://github.com/facebook/zstd.git synced 2026-04-26 15:24:34 +02:00
Files
Ryan Lefkowitz c59812e558 🔧 Fix memory leak in pthread init functions on failure
When pthread_mutex_init() or pthread_cond_init() fails in the debug
implementation (DEBUGLEVEL >= 1), the previously allocated memory was
not freed, causing a memory leak.

This fix ensures that allocated memory is properly freed when pthread
initialization functions fail, preventing resource leaks in error
conditions.

The issue affects:
- ZSTD_pthread_mutex_init() at lib/common/threading.c:146
- ZSTD_pthread_cond_init() at lib/common/threading.c:167

This is particularly important for long-running applications or
scenarios with resource constraints where pthread initialization
might fail due to system limits.
2025-09-15 18:20:01 -04:00
..
2025-02-26 07:41:34 -08:00
2025-07-07 23:07:39 +08:00
2024-12-04 06:47:32 -08:00
2024-12-18 09:56:50 -08:00
2025-01-19 18:05:57 -08:00