mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Make sure energy-dependent multiplicities are deallocated. This memory leak was
introduced by #348.
This commit is contained in:
parent
291b45a646
commit
e8bc1e932b
1 changed files with 3 additions and 2 deletions
|
|
@ -336,8 +336,9 @@ module ace_header
|
|||
|
||||
class(Reaction), intent(inout) :: this ! The Reaction object to clear
|
||||
|
||||
if (allocated(this % sigma)) &
|
||||
deallocate(this % sigma)
|
||||
if (allocated(this % sigma)) deallocate(this % sigma)
|
||||
|
||||
if (associated(this % multiplicity_E)) deallocate(this % multiplicity_E)
|
||||
|
||||
if (associated(this % edist)) then
|
||||
call this % edist % clear()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue