Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8523) historian agent leaks memory?
Home

[Freeciv-Dev] (PR#8523) historian agent leaks memory?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8523) historian agent leaks memory?
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 15 Apr 2004 15:06:55 -0700
Reply-to: rt@xxxxxxxxxxx

<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 <=