Skip to content

Commit

Permalink
Merge pull request #15402 from IVOES/fix-new-array-delete-mismatch
Browse files Browse the repository at this point in the history
Fix 'new[]' array freed with 'delete'
  • Loading branch information
0xc0170 authored Apr 19, 2023
2 parents fe56b43 + 65b14f7 commit 5db6bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/kvstore/securestore/source/SecureStore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ int SecureStore::deinit()
mbedtls_entropy_free(_entropy);
delete _entropy;
delete _ih;
delete _scratch_buf;
delete[] _scratch_buf;
_entropy = nullptr;
}
ret = _underlying_kv->deinit();
Expand Down

0 comments on commit 5db6bcc

Please sign in to comment.