[haiku-commits] Re: r40447 - haiku/trunk/src/add-ons/kernel/network/stack

  • From: Rene Gollent <anevilyak@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 11 Feb 2011 15:24:32 -0500

On Fri, Feb 11, 2011 at 3:21 PM,  <axeld@xxxxxxxxxxxxxxxx> wrote:
>        while (InterfaceAddress* address = fAddresses.RemoveHead()) {
> +               locker.Unlock();
> +
>                address->ReleaseReference();
> +               if (address->LocalIsDefined()) {
> +                       MutexLocker hashLocker(sHashLock);
> +                       sAddressTable.Remove(address);
> +               }
> +
> +               locker.Lock();

Shouldn't you release the reference after doing the hash removal? Or
does something else still hold a ref to the address in the meantime?

Regards,

Rene

Other related posts: