From 627bd655347cb3aaf04b352e4f0a0207d64c8cb1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 May 2018 11:00:10 +0200 Subject: Fix memory leak (mismatch free/delete/delete[]), fix invalid memory access --- include/odhtdb/DatabaseNode.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/odhtdb/DatabaseNode.hpp') 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 &_encryptionKey, const std::shared_ptr &_nodeHash) : + DatabaseNode(const std::shared_ptr &_encryptionKey, const std::shared_ptr &_nodeHash) : encryptionKey(_encryptionKey), nodeHash(_nodeHash) { } - const std::shared_ptr getNodeEncryptionKey() const + const std::shared_ptr getNodeEncryptionKey() const { return encryptionKey; } @@ -28,7 +28,7 @@ namespace odhtdb return nodeHash; } private: - std::shared_ptr encryptionKey; + std::shared_ptr encryptionKey; std::shared_ptr nodeHash; }; } -- cgit v1.2.3