Don't double-free the Ethernet interface
It is currently done in both ~EthernetService() and ~NetStack(). Since NetStack is where it's added and where an explicit accessor function is provided, choose that location. Signed-off-by: Augustin Cavalier <[email protected]>
This commit is contained in:
committed by
Augustin Cavalier
parent
1939021364
commit
9037351c6c
@@ -77,8 +77,6 @@ EthernetService::~EthernetService()
|
||||
{
|
||||
if (fSendBuffer)
|
||||
fInterface->FreeSendReceiveBuffer(fSendBuffer);
|
||||
|
||||
delete fInterface;
|
||||
}
|
||||
|
||||
// Init
|
||||
|
||||
Reference in New Issue
Block a user