mirror of
https://github.com/espressif/esp-idf.git
synced 2026-07-14 06:53:05 +03:00
jpeg_acquire_codec_handle acquires s_jpeg_platform.mutex at entry but two ESP_RETURN_ON_* macros (semaphore-create and PM-lock-create failure) return without releasing it. Replace with ESP_GOTO_ON_* that jumps to a cleanup label which frees partial resources, NULLs the codec pointer, and releases the mutex.