* Getting an address leaked a reference. This fixes that interfaces could not

really be deleted (a reference of them was kept in memory).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38179 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2010-08-17 11:43:22 +00:00
parent 7e046eab3b
commit 75b83073c2

View File

@ -772,8 +772,12 @@ interface_protocol_control(net_datalink_protocol* _protocol, int32 option,
size_t maxLength = length - offsetof(ifreq, ifr_addr);
return fill_address(*interfaceAddress->AddressFor(option),
status_t status = fill_address(
*interfaceAddress->AddressFor(option),
&((struct ifreq*)argument)->ifr_addr, maxLength);
interfaceAddress->ReleaseReference();
return status;
}
case B_SOCKET_COUNT_ALIASES: