On 12.09.25 10:20, Haofeng Li wrote:
From: Haofeng Li lihaofeng@kylinos.cn
When realloc() fails in transhuge-stress test, the original code exits immediately without freeing the previously allocated memory, causing a memory leak.
What do you think happens when a process exits? :)
Correct! All memory ever allocated to that process gets freed, avoiding any memory leaks.