News for hackers. Stuff that matters.
Re:Defensive Programming by btrask on Thursday December 24, 2020 @04:16AM (#25526115)
If you are transferring ownership, you would do

    p2 = p1; p1 = NULL;
However if you are intentionally doing multiple ownership, then yes you can still have problems.

There are no comments on this comment yet.