On Tuesday 11 February 2014 18:34:10 Antonio Quartulli wrote:
true, but since the orig_node has not been returned yet there is no other component in batman-adv which is using it.
Otherwise, we may want to define and invoke a free_now() version of this function (like we have done for other objects). But I think kfree() is safe here.
It may be safe now but will surely be forgotten later. A guaranteed source for trouble. That is why we have cleanup routines for everything.
Cheers, Marek