always free your pointers people.
what's worse is when you preach that to people and end up being the one who leaves dangling pointers everywhere

woop memory overflowed
woop woop system crashes and you dont know why
woop woop woop sometimes it doesnt crash and you dont know why

  • 0
    If you're having those kinds of problems, you're trying to progress too quickly. Slow and steady wins the race. Just don't be too slow...
  • 0
    @Lahsen2016 maybe because then youd have to pass free a pointer to your pointer?
    and then maybe youd have people forgetting to pass the adress of their pointers and shit goes haywire
    or maybe they dont want that extra instruction or two to dereference the adress of the pointer
    maybe sometimes its not needed to set the pointer to null if its in a local function scope
    or maybe they were just lazy

    lots of maybe
Add Comment