* Fixed memory leaks pointed out by Stephan, thanks!

* Automatic whitespace cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38068 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-08-12 21:20:31 +00:00
parent d25313d44f
commit 095f97a6b6
@@ -750,8 +750,10 @@ Interface::Control(net_domain* domain, int32 option, ifreq& request,
return B_NO_MEMORY;
status_t status = AddAddress(address);
if (status != B_OK)
if (status != B_OK) {
delete address;
return status;
}
// Note, even if setting the address failed, the empty
// address added here will still be added to the interface.
@@ -842,8 +844,10 @@ Interface::Control(net_domain* domain, int32 option, ifreq& request,
return B_NO_MEMORY;
status_t status = AddAddress(address);
if (status != B_OK)
if (status != B_OK) {
delete address;
return status;
}
// Note, even if setting the address failed, the empty
// address added here will still be added to the interface.