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.

pull/11894/head
George Beckstein 2019-11-06 14:31:04 -05:00 committed by adbridge
parent eb1d5c7a70
commit aabf0afe2b
1 changed files with 1 additions and 0 deletions

View File

@ -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_();