Skip to content

Commit 9c75207

Browse files
committed
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.
1 parent e4164be commit 9c75207

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

features/FEATURE_BLE/source/generic/GenericSecurityManager.tpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::setData
137137

138138
template<template<class> class TPalSecurityManager, template<class> class SigningMonitor>
139139
ble_error_t GenericSecurityManager<TPalSecurityManager, SigningMonitor>::reset_(void) {
140+
delete _db;
140141
_pal.reset();
141142
SecurityManager::reset_();
142143

0 commit comments

Comments
 (0)