mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
esp-netif: fix memory allocation issues found by static analyser
This commit is contained in:
@@ -76,6 +76,7 @@ esp_err_t esp_netif_add_to_list(esp_netif_t *netif)
|
||||
item->netif = netif;
|
||||
|
||||
if ((ret = esp_netif_list_lock()) != ESP_OK) {
|
||||
free(item);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user