Skip to content

Commit

Permalink
don't call destructor twice
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jun 25, 2019
1 parent 8e919dd commit fecc0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/util.h
Expand Up @@ -46,7 +46,7 @@ namespace util
{
auto tmp = m_Head;
m_Head = static_cast<T*>(*(void * *)m_Head); // next
delete tmp;
::operator delete ((void *)tmp);
}
}

Expand Down

0 comments on commit fecc0c4

Please sign in to comment.