This post contains 18+ content. You can view it if you're over 18.
This is also why you always fucking zero out memory you allocated if you didn't calloc it, or zero it out before freeing it if it's sensitive, because otherwise, that's how hacks and attacks happen