Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no longer necessary to call netcon_free since the memory leak was fixed
with latest version of esp-idf
  • Loading branch information
tonyp7 committed Dec 10, 2017
1 parent c054c53 commit d50f9bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wifi_manager/main/http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ 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 {
err = netconn_accept(conn, &newconn);
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);
Expand Down

0 comments on commit d50f9bf

Please sign in to comment.