Skip to content

Commit

Permalink
Merge pull request #690 from galacticusorg/fixEventsMemoryLeak
Browse files Browse the repository at this point in the history
Avoid memory leak in events filtering
  • Loading branch information
abensonca authored Sep 6, 2024
2 parents 925e5bc + feab823 commit 9843132
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions perl/Galacticus/Build/SourceTree/Process/EventHooks.pm
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ CODE
{$name}EventBackups => {$name}EventBackups%next
select type (eventHook_ => eventHookBackup%eventHook_)
type is (eventHook{$interfaceType})
if (allocated({$name}Event%hooks_)) deallocate({$name}Event%hooks_)
{$name}Event = eventHook_
class default
call Error_Report('eventHook has incorrect class'//{$location})
Expand Down

0 comments on commit 9843132

Please sign in to comment.