Skip to content

Commit a9dc606

Browse files
committed
fix memory leak
1 parent 7c68dfc commit a9dc606

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/source_lcao/module_hcontainer/hcontainer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ HContainer<T>::HContainer(HContainer<T>&& HR_in) noexcept
4646
this->wrapper_pointer = HR_in.wrapper_pointer;
4747
this->gamma_only = HR_in.gamma_only;
4848
this->paraV = HR_in.paraV;
49+
this->allocated = HR_in.allocated;
4950
this->current_R = -1;
5051
HR_in.wrapper_pointer = nullptr;
5152
// tmp terms not moved
@@ -63,6 +64,7 @@ HContainer<T>& HContainer<T>::operator=(HContainer<T>&& HR_in) noexcept
6364
this->wrapper_pointer = HR_in.wrapper_pointer;
6465
this->gamma_only = HR_in.gamma_only;
6566
this->paraV = HR_in.paraV;
67+
this->allocated = HR_in.allocated;
6668
this->current_R = -1;
6769

6870
HR_in.wrapper_pointer = nullptr;

0 commit comments

Comments
 (0)