1 Commits
Author SHA1 Message Date
Shay 1740769c6c libretro: fix_realloc_r memory leaks and zero-size reallocation
The previous `_realloc_r` implementation would leak the original memory block (`ptr`) when the in-place `SetPtrSize` call failed and a new block had to be allocated.

This change also adds correct handling for `realloc(ptr, 0)`, which should free the block and return `NULL`.
2026-07-20 10:00:10 -06:00