[Freeciv-Dev] (PR#8523) historian agent leaks memory?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8523 >
It looks to me like previous_tiles is allocated each time a game starts.
This means if you disconnect and reconnect it will be reallocated.
Note that MAX_MAP_INDEX applies only to the current game, it is not an
asolute maximum. So if you disconnect and reconnect you do have to
reallocate this array.
I suggest the use of realloc().
jason
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Freeciv-Dev] (PR#8523) historian agent leaks memory?,
Jason Short <=
|
|