Memory leaks in subscription library
Description
The subscription library does not seem to free the SOPC_PKIProvider
, the certificates created by Helpers_NewSCConfigFromLibSubCfg
, and the new secure channel configurations.
Analysis
This is bound be done in SOPC_LibSub_Clear
. But secure channel configurations are not stored before being passed to the toolkit, and the toolkit does not free them.
ASan does not raise an error, as the structures are still reachable at the end of the execution of the check_libsub
. However, valgrind
flags these memory regions as "still reachable".
Edited by Pierre-Antoine BRAMERET