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 cachemap is only used within this file. Could it be that valgrind reports this due to the fact that this memory is never freed within the code but reused? Related (solved) bug wrt other reallocated pointers: bugs #15305 _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?15519> _______________________________________________ Nachricht geschickt von/durch Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev