On 01/09/2022 11:20 PM, Redwan wrote: > the worst things about it is as I didn't start writing my code it > already has memory leak :/ That's not what valgrind told you. There is some state like the GC and threads that won't be deallocated until the end of process by the kernel. Its not a memory leak, it is just long lived internal state.