kopia lustrzana https://github.com/espressif/esp-idf
esp-netif: fix memory allocation issues found by static analyser
rodzic
49e8c09ec2
commit
6a47dc9275
|
@ -76,6 +76,7 @@ esp_err_t esp_netif_add_to_list(esp_netif_t *netif)
|
||||||
item->netif = netif;
|
item->netif = netif;
|
||||||
|
|
||||||
if ((ret = esp_netif_list_lock()) != ESP_OK) {
|
if ((ret = esp_netif_list_lock()) != ESP_OK) {
|
||||||
|
free(item);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue