4 ms·
It's quite obvious... "If you don’t call free, memory usage will increase over time, but technically, it’s not a leak."
by ric2b 3y ago
It's quite obvious...
"If you don’t call free, memory usage will increase over time, but technically, it’s not a leak."
- fsckboy 3y agothere is plenty of code that is designed not to free at all because the program will not run long enough to generate much garbage. and having the whole process shut down is simpler than unwinding everything perfectly. so, no, it's not obvious. I had no trouble reading what the code did (and didn't) but it's not obvious that the author understood it. There are plenty of people here who need that much help with C