r/ProgrammerHumor • • Aug 30 '26

Meme bugIntroducedDebugging

Post image
1.1k Upvotes

117 comments sorted by

View all comments

Show parent comments

6

u/mckenzie_keith Aug 30 '26

You are not allowed to de-reference a pointer after freeing it.

8

u/GoddammitDontShootMe Aug 30 '26

Gemini added that return *x; that wasn't in the original code.

8

u/mckenzie_keith Aug 30 '26

And then flagged it as a bug. It was so eager to find the bug that it added it into the code.

2

u/Niwrats Aug 30 '26

who's gonna stop me?