Set vaiables to NULL after free