mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'fix_possible_memory_leak' of ssh://github.com/KariHaapalehto/mbed-os into rollup
commit
ddd82a9d5e
|
@ -200,6 +200,7 @@ nsapi_error_t Nanostack::add_ethernet_interface(EMAC &emac, bool default_if, Nan
|
|||
|
||||
nsapi_error_t err = interface->initialize();
|
||||
if (err) {
|
||||
delete interface;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue