Fix to memory leaks
Brought to you by:
nikkostrom
Hi Nikko,
I have been tracking some deallocation problems using AddressSanitizer in version 1.1.2. The simple programme I used is test_memory.c, in attachment. It just reads a network, compiles the simulator and then frees everything. In the following I summarize the problems I found. I also attach the patches to fix those problems. It would be great if you could include them in the next version, if you ever make one.
Problems:
RTDNN.c, FreeStream: missing FREE(str->Filter);
RTDNN.c, FreeNet: missing
Simulation.c FreeNetWork: missing
RTSim.c FreeRTSim: missing:
Best
Giampiero