aboutsummaryrefslogtreecommitdiff
path: root/include/odhtdb/DatabaseNode.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-16 11:00:10 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commit627bd655347cb3aaf04b352e4f0a0207d64c8cb1 (patch)
treeb45b2a341b1e5675f8af3662e5a124fcf6093d4e /include/odhtdb/DatabaseNode.hpp
parent97c9ff702f002925dcd33869d0e22eda18390e2e (diff)
Fix memory leak (mismatch free/delete/delete[]), fix invalid memory access
Diffstat (limited to 'include/odhtdb/DatabaseNode.hpp')
-rw-r--r--include/odhtdb/DatabaseNode.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/odhtdb/DatabaseNode.hpp b/include/odhtdb/DatabaseNode.hpp
index 620cd40..c707af9 100644
--- a/include/odhtdb/DatabaseNode.hpp
+++ b/include/odhtdb/DatabaseNode.hpp
@@ -11,14 +11,14 @@ namespace odhtdb
public:
DatabaseNode() {}
- DatabaseNode(const std::shared_ptr<OwnedMemory> &_encryptionKey, const std::shared_ptr<Hash> &_nodeHash) :
+ DatabaseNode(const std::shared_ptr<OwnedByteArray> &_encryptionKey, const std::shared_ptr<Hash> &_nodeHash) :
encryptionKey(_encryptionKey),
nodeHash(_nodeHash)
{
}
- const std::shared_ptr<OwnedMemory> getNodeEncryptionKey() const
+ const std::shared_ptr<OwnedByteArray> getNodeEncryptionKey() const
{
return encryptionKey;
}
@@ -28,7 +28,7 @@ namespace odhtdb
return nodeHash;
}
private:
- std::shared_ptr<OwnedMemory> encryptionKey;
+ std::shared_ptr<OwnedByteArray> encryptionKey;
std::shared_ptr<Hash> nodeHash;
};
}