From d50f9bfb2b9503e9095d5d25cb9dafc474ab487d Mon Sep 17 00:00:00 2001 From: tonyp7 Date: Sun, 10 Dec 2017 14:28:03 +0800 Subject: [PATCH] see https://github.com/espressif/esp-idf/issues/784 no longer necessary to call netcon_free since the memory leak was fixed with latest version of esp-idf --- wifi_manager/main/http_server.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wifi_manager/main/http_server.c b/wifi_manager/main/http_server.c index db1f2f60..75ea436f 100644 --- a/wifi_manager/main/http_server.c +++ b/wifi_manager/main/http_server.c @@ -106,7 +106,7 @@ void http_server(void *pvParameters) { struct netconn *conn, *newconn; err_t err; conn = netconn_new(NETCONN_TCP); - netconn_bind(conn, NULL, 80); + netconn_bind(conn, IP_ADDR_ANY, 80); netconn_listen(conn); printf("HTTP Server listening...\n"); do { @@ -114,7 +114,6 @@ void http_server(void *pvParameters) { if (err == ERR_OK) { http_server_netconn_serve(newconn); netconn_delete(newconn); - netconn_free(newconn); } vTaskDelay( (TickType_t)10); /* allows the freeRTOS scheduler to take over if needed */ } while(err == ERR_OK);