Free the correct pointer in hook_destroy