mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
fix(esp_eth): Fixed another memory leak ESP MAC
This commit is contained in:
@ -659,7 +659,7 @@ esp_eth_mac_t *esp_eth_mac_new_esp32(const eth_esp32_emac_config_t *esp32_config
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret_code = emac_esp_alloc_driver_obj(config, &emac);
|
ret_code = emac_esp_alloc_driver_obj(config, &emac);
|
||||||
ESP_RETURN_ON_FALSE(ret_code == ESP_OK, NULL, TAG, "alloc driver object failed");
|
ESP_GOTO_ON_FALSE(ret_code == ESP_OK, NULL, err, TAG, "alloc driver object failed");
|
||||||
|
|
||||||
// enable bus clock for the EMAC module, and reset the registers into default state
|
// enable bus clock for the EMAC module, and reset the registers into default state
|
||||||
// this must be called before HAL layer initialization
|
// this must be called before HAL layer initialization
|
||||||
|
Reference in New Issue
Block a user