Write the `free_nob` function