6 ms·
Forgot to check for null return from malloc().
by WalterBright 7y ago
Forgot to check for null return from malloc().
- jstimpfle 7y agoExcuse me, but this sort of complaining about toy code is pretty pointless, at least when it comes to bashing the language. I don't use malloc directly in real code... You'd never object "forgot to catch std::bad_alloc from new'ing", would you?