Memory leak with https schema while using cpprest SDK
When implementing restapi using cpprest with https schema, memory leak is observed which is pointing to CRYPTO libraries api call i.e CRYPTO_zalloc. If used with http schema, there is no memory leak observed.
Any help is highly appreciated...Thank you in advance.
We recommend using libcurl for new projects.
However, more information about the leak would be appreciated. How are you detecting the leak? Can you generate a callstack for the leaking allocations?
Hi @barcharcraz , our project is using openapi generator + cpprestsdk. https://openapi-generator.tech/docs/generators/cpp-restsdk
But libcurl is not a client generator that is supported by openapi. https://openapi-generator.tech/docs/generators
Which client generator would you suggest to use?
We recommend using libcurl for new projects.
However, more information about the leak would be appreciated. How are you detecting the leak? Can you generate a callstack for the leaking allocations?
Hi @barcharcraz,
Here is the sample code:
memory leak is detected using valgrind tool. Here is the leak call stack:

@barcharcraz When you say "we recommend using libcurl in projects", Do you mean use libcurl instead of libcrypto?
Hi, any feedback on this issue? Facing the same problem.