Part Number: TM4C129ENCPDT
Hi All,
I am using httpcli library with tirtos and doing https. Everything is working fine but when I tried to release the resources, I am getting reset.
I am creating the https req using httpcli library.
HTTPCli_Struct cli;
HTTPCli_Handle cliPtr;
I am using these to connect and send data. Everything works fine but when I am releasing the resources and closing the connection, I am getting reset-
cliPtr = &cli;
HTTPCli_disconnect(&cli);
HTTPCli_destruct(&cli);
Using above code, I am able to close the connection. But, I read in the document that HTTPCli_destruct does not free up the memory. For that I have to use HTTPCli_delete.
cliPtr = &cli;
HTTPCli_disconnect(&cli);
HTTPCli_delete(&cliPtr);
When I am calling this, I am getting reset into HTTPCli_delete API call.
Why is this so? Can anyone help me fix this. I have to free up memory too because I am creating multiple sockets for MQTT, FTPS too.
Thanks
