mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 13:44:59 -07:00
use memory formatting in tracking allocator doc
This commit is contained in:
+1
-1
@@ -24,7 +24,7 @@ main :: proc() {
|
||||
_main()
|
||||
|
||||
for _, leak in track.allocation_map {
|
||||
fmt.printf("%v leaked %v bytes\n", leak.location, leak.size)
|
||||
fmt.printf("%v leaked %m\n", leak.location, leak.size)
|
||||
}
|
||||
for bad_free in track.bad_free_array {
|
||||
fmt.printf("%v allocation %p was freed badly\n", bad_free.location, bad_free.memory)
|
||||
|
||||
Reference in New Issue
Block a user