covid-sim
covid-sim copied to clipboard
Memory leak in SetupModel.cpp
In SetupModel.cpp (commit e698439cdfe3097f18492), there is a global variable void* BinFileBuf
. There are three malloc
s for it at lines 53, 666, and 795, but there is only one free
for it at line 822 that frees the memory allocated at line 666. The memory allocated at the two other places are not freed.
Thank you for your report. I agree there is an issue here.
We will investigate improving this, and making the memory flow more obvious.