pwdisswordfishz
Joined 2 years ago
Karma
535
Submissions
254
Member since
Jun 9
View on Hacker News
Joined 2 years ago
> If malloc fails and returns NULL, the cleanup function will still be called, and there’s no simple way to add a guard inside free_ptr.
free(NULL) is a no-op, this is a non-issue. I don't know what's so hard about a single if statement anyway even if this were an issue.
The video is hilarious, though:
That's a relatively new development. The cultural aspects that you're describing were already in place (entrenched) well before Reddit integrated that feature.
In the end, there is no Royal Road to learning. You have to create put in the effort to create new concepts in your head to understand something.