aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/par_hash/par_hash.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-07-21 11:30:37 -0400
committerJack Lloyd <[email protected]>2016-07-21 11:30:37 -0400
commitb4da573fc1c241a6badc83f4ec166cbdd5c70c5c (patch)
treecd91fd6cd3ebdffd2e1705dbb7c233b6cded5570 /src/lib/hash/par_hash/par_hash.cpp
parentf7fb8241947de7df08acd87423738edc39e15421 (diff)
parent8f53d3f6efd1419e8feac027035fc8d407e1e75f (diff)
Merge GH #548 Parallel hash tests, fix memory leak
Diffstat (limited to 'src/lib/hash/par_hash/par_hash.cpp')
-rw-r--r--src/lib/hash/par_hash/par_hash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hash/par_hash/par_hash.cpp b/src/lib/hash/par_hash/par_hash.cpp
index 5645a99c7..f6bed96ee 100644
--- a/src/lib/hash/par_hash/par_hash.cpp
+++ b/src/lib/hash/par_hash/par_hash.cpp
@@ -68,7 +68,7 @@ HashFunction* Parallel::clone() const
std::vector<HashFunction*> hash_copies;
for(auto&& hash : m_hashes)
- hash_copies.push_back(hash->clone());
+ hash_copies.push_back(hash.get());
return new Parallel(hash_copies);
}