mirror of https://github.com/ARMmbed/mbed-os.git
Added call to delete the security database object upon SM reset. This allows the file to be closed by the OS and flushed to disk.
parent
eb1d5c7a70
commit
aabf0afe2b
|
@ -137,6 +137,7 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::setData
|
||||||
|
|
||||||
template<template<class> class TPalSecurityManager, template<class> class SigningMonitor>
|
template<template<class> class TPalSecurityManager, template<class> class SigningMonitor>
|
||||||
ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::reset_(void) {
|
ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::reset_(void) {
|
||||||
|
delete _db;
|
||||||
_pal.reset();
|
_pal.reset();
|
||||||
SecurityManager::reset_();
|
SecurityManager::reset_();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue