* Miguel Sancho <[email protected]> [170124 12:17]: > response = MHD_create_response_from_buffer(size,(void*)buffer, > *MHD_RESPMEM_PERSISTENT*); > ret = MHD_queue_response (connection, 200, response); > MHD_destroy_response (response); > free(buffer); Instead of PERSISTEND and manually free'ing, I would recommend the option MHD_RESPMEM_MUST_FREE Then MHD will free the memory – when it is safe to do so.
Greetings, Markus
