Passing a NULL-ptr to free_netdev is wrong.