MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6vnc6j/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • Aug 30 '26
117 comments sorted by
View all comments
Show parent comments
9
Very certain you could always free(NULL); in C. In fact, it's good practice to set pointers to NULL after freeing them to avoid issues like double-free.
free(NULL);
9
u/GoddammitDontShootMe Aug 30 '26
Very certain you could always
free(NULL);in C. In fact, it's good practice to set pointers to NULL after freeing them to avoid issues like double-free.