Open nkallen opened 1 year ago
https://github.com/keygen-sh/example-cpp-cryptographic-license-files/blob/30682baebd4897ac1f27350aefbc4b648aa66db5/main.cpp#LL278C26-L278C29
I think this will leak in the early return cases. Probably easiest to use a std::vector on the stack and pass .data() . Alternatively use unique_ptr
Actually it always leaks since the string constructor always copies
Fixed by 53fa084 - this issue can be closed
https://github.com/keygen-sh/example-cpp-cryptographic-license-files/blob/30682baebd4897ac1f27350aefbc4b648aa66db5/main.cpp#LL278C26-L278C29
I think this will leak in the early return cases. Probably easiest to use a std::vector on the stack and pass .data() . Alternatively use unique_ptr