Skip to content

Commit

Permalink
Fix memory leak on TDeletingArray move assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed May 31, 2024
1 parent c707b41 commit 9dcc3c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/utility/tarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,7 @@ class TDeletingArray : public TArray<T, TT>
TDeletingArray(TDeletingArray<T,TT> &&other) : TArray<T,TT>(std::move(other)) {}
TDeletingArray<T,TT> &operator=(TDeletingArray<T,TT> &&other)
{
DeleteAndClear();
TArray<T,TT>::operator=(std::move(other));
return *this;
}
Expand Down

0 comments on commit 9dcc3c1

Please sign in to comment.