From 95316118206aeed718ae6260ef9b5a1a4a6dacd8 Mon Sep 17 00:00:00 2001 From: Determinant Date: Thu, 19 Jul 2018 14:43:35 -0400 Subject: fix mem leak --- include/hotstuff/entity.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/hotstuff/entity.h') diff --git a/include/hotstuff/entity.h b/include/hotstuff/entity.h index 03aff06..28b5148 100644 --- a/include/hotstuff/entity.h +++ b/include/hotstuff/entity.h @@ -184,7 +184,7 @@ class Block { << "id=" << get_hex10(hash) << " " << "height=" << std::to_string(height) << " " << "parent=" << get_hex10(parent_hashes[0]) << ">"; - return std::string(std::move(s)); + return std::move(s); } }; -- cgit v1.2.3-70-g09d2