Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
-
No, but at that point you have actively changed it, that means you properly know that you would need to free it. |
Beta Was this translation helpful? Give feedback.
-
Unless you know you don't need to because the OS will free any allocations when the program exits, and now you're suddenly confronted with an assert to tell you of a purposeful leak. By all means add leak checking to your own Checking whether |
Beta Was this translation helpful? Give feedback.
-
Make temp_allocator assert if it was not free_all'd at program termination, because of the change from ring buffer to a growing arena it might reduce memleak errors from new and old odin users.
Beta Was this translation helpful? Give feedback.
All reactions