[Freeciv-Dev] [bug #15519] ai_settler_init() memory leak

2010-03-06 Thread Matthias Pfafferodt
Update of bug #15519 (project freeciv): Assigned to:None = syntron ___ Reply to this item at: http://gna.org/bugs/?15519 ___ Nachricht

[Freeciv-Dev] [bug #15519] ai_settler_init() memory leak

2010-03-02 Thread Marko Lindqvist
Follow-up Comment #2, bug #15519 (project freeciv): Problem is that it's never freed after last allocation. To be completely clean, server should free it when quitting. ___ Reply to this item at: http://gna.org/bugs/?15519

[Freeciv-Dev] [bug #15519] ai_settler_init() memory leak

2010-03-02 Thread Matthias Pfafferodt
Follow-up Comment #3, bug #15519 (project freeciv): I'm working on a patch changing the the usage of the struct cityresult. This will also change cachemap to use fc_malloc() / free(). It is connected to the cityresult patches. I try to change all city map related places to use the city map index

[Freeciv-Dev] [bug #15519] ai_settler_init() memory leak

2010-03-01 Thread Marko Lindqvist
URL: http://gna.org/bugs/?15519 Summary: ai_settler_init() memory leak Project: Freeciv Submitted by: cazfi Submitted on: Monday 03/01/2010 at 16:34 Category: None Severity: 3 - Normal

[Freeciv-Dev] [bug #15519] ai_settler_init() memory leak

2010-03-01 Thread Matthias Pfafferodt
Follow-up Comment #1, bug #15519 (project freeciv): The function this points to has the following code: void ai_settler_init(struct player *pplayer) { cachemap = fc_realloc(cachemap, MAP_INDEX_SIZE * sizeof(*cachemap)); memset(cachemap, -1, MAP_INDEX_SIZE * sizeof(*cachemap)); } The