Auto merge of #1230 - rcseacord:rcseacord-patch-1, r=str4d

Address incorrect use of shared_ptr in equihash.cpp

Closes #1214
This commit is contained in:
zkbot 2016-08-17 00:35:57 +00:00
commit cdc01fad17
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ TruncatedStepRow<WIDTH>& TruncatedStepRow<WIDTH>::operator=(const TruncatedStepR
template<size_t WIDTH>
std::shared_ptr<eh_trunc> TruncatedStepRow<WIDTH>::GetTruncatedIndices(size_t len, size_t lenIndices) const
{
std::shared_ptr<eh_trunc> p (new eh_trunc[lenIndices]);
std::shared_ptr<eh_trunc> p (new eh_trunc[lenIndices], std::default_delete<eh_trunc[]>());
std::copy(hash+len, hash+len+lenIndices, p.get());
return p;
}