r/ProgrammerHumor 2d ago

Meme bugIntroducedDebugging

Post image
1.1k Upvotes

120 comments sorted by

View all comments

341

u/AdBrave2400 2d ago

Is the mistake that they're allocating 1 byte and storing in a pointer to an int which is 4 bytes?

119

u/mckenzie_keith 2d ago

De-referenced a pointer after freeing it. But the joke here is that the bug was not in the original code.

13

u/AdBrave2400 2d ago

I know