6 Replies Latest reply on Dec 12, 2019 7:33 PM by ChMa_3922746

    HTTPS Server Allocates Memory for Context But Does Not Release It (CYW943907AEVAL1F)

    ChMa_3922746

      I was doing a bit of malloc debug since I saw memory increasing whenever new clients (Firefox web browser) connected to the WICED HTTPS server (TLS enabled).  I observed that the function http_server_deferred_connect_callback() allocates memory for each new client, but never frees the memory.  Over time the memory usage creeps up and up.

       

      The function call that allocates the memory is context = malloc_named("https", sizeof(wiced_tls_context_t));

       

      Can anyone think of a way to free up the memory after a period of time has expired (i.e., the client has not connected for some period of time)?  (Other than stopping and re-starting the server, that is.)

       

      Thanks!