You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Adding a propagation layer leaks ~183 kB per FireDomain #159
Each FireDomain with a propagation layer leaks ~183 kB (construct, addPropagativeLayer("Rothermel"), delete). It grows linearly: +367 MB after 2000 domains. Without the layer the loop stays flat. Measured on dev @ f00d722.
Causes found (they may not explain all 183 kB):
~FireDomain never deletes propagativeLayer (the delete is commented out, FireDomain.cpp:335).
The PropagationModel goes into the staticpropModelsTable and nothing ever removes it.
Fix after #157. While the double-delete is there, freeing the models turns this leak into a crash.
Related: getFreePropModelIndex() (FireDomain.cpp:857) underflows a size_t when the table is full, and getFreeFluxModelIndex can return a slot that is already in use. Neither is reachable today, but a fix here can make them reachable.
This matters for ensembles and long-running Python hosts.
Drafted with Claude Opus 5, reviewed by a maintainer.
Activity
fix(core): give the propagation models and layers an owner (#182)
antonio-leblanc commentedon Oct 21, 2026
Fixed in
devby #182 (merged by filippi), will ship with the next release.Dev to master -> v2.6.0 (#224)