-
Mauritz Sundell authored
Problem ======= In angel_run() uses free(), via NdbAutoPtr, to deallocate ndb_mgm_configuration object instead of calling ndb_mgm_destroy_configuration() (which correctly uses delete for deallocation). The above trigger an AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) failure. The configuration object came from ConfigRetriver::getConfig(). Solution ======== Add deleter class to ConfigRetriever suitable for usage by std::unique_ptr. And use std::unique_ptr instead of NdbAutoPtr. Reviewed-by:
Sanjana DS <sanjana.ds@oracle.com>
Mauritz Sundell authoredProblem ======= In angel_run() uses free(), via NdbAutoPtr, to deallocate ndb_mgm_configuration object instead of calling ndb_mgm_destroy_configuration() (which correctly uses delete for deallocation). The above trigger an AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) failure. The configuration object came from ConfigRetriver::getConfig(). Solution ======== Add deleter class to ConfigRetriever suitable for usage by std::unique_ptr. And use std::unique_ptr instead of NdbAutoPtr. Reviewed-by:
Sanjana DS <sanjana.ds@oracle.com>
Loading