You can use address sanitizer to examine the leaking.
I've started a pull request to fix a fd leak in https://github.com/ApolloAuto/apollo/pull/14309 , but no one cares my fixing. So I lost my patient on testing the fixing uppon. And just report the bug here - -, to fix or not, it's your decision.
Describe the bug
OSQPData* data = reinterpret_cast<OSQPData*>(c_malloc(sizeof(OSQPData)));
This variable data was never freed. The csc_matrixies was never freed neither.
may fix this bug.
To Reproduce
You can use address sanitizer to examine the leaking.
I've started a pull request to fix a fd leak in https://github.com/ApolloAuto/apollo/pull/14309 , but no one cares my fixing. So I lost my patient on testing the fixing uppon. And just report the bug here - -, to fix or not, it's your decision.