You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The nodes are allocated with malloc and often not initialized.
I'm not sure that it's a real problem, but perhaps it's better to use calloc instead of malloc.
Hello @romanbsd, I'll check what are the reports that valgrind outputs. I used valgrind less than normally with Rax because it is not able to deal with pointers stored at unaligned addresses so outputs a ton of false positives. Btw I don't think it's a good idea to fix the problem by replacing malloc with calloc, since many places don't need explicit initialization, so why pay the CPU cost to zero the bytes? Thanks!
The nodes are allocated with malloc and often not initialized.
I'm not sure that it's a real problem, but perhaps it's better to use calloc instead of malloc.
If you want I can create a PR.
The text was updated successfully, but these errors were encountered: