Goldeye Novice
Gender: Joined: Dec 15 2003 Posts: 57 Offline
|
Posted: Mon Oct 31, 2005 10:27 pm Post subject: Incorrect module detach order |
 |
|
|
|
In modules.c, void DetachAllFromArena(Arena *arena)...
It detaches modules in the order they were attached, shouldn't the most recently attached module be detached first, and so on?
This has caused crashes for us in the past, where one module tried getting at free'd memory.
Our fix is to create a list in reversed order at the start of DetachAllFromArena, because apparently, there are problems if you make the list reversed in the first place. |
|