Björkus 'No time_t to Die' Dorkus
2 years
Things I've learned about memory management in C in the last 12 hours, a 🧵.
- Only have on return statement, pre-allocate any memory, file descirptors, or whatever up front, use goto exit; to get to the end of the block prematurely, check everything in exit to then delete it