Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2003:
[Freeciv-Dev] (PR#6897) leak in ai_diplomacy_suggest
Home

[Freeciv-Dev] (PR#6897) leak in ai_diplomacy_suggest

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#6897) leak in ai_diplomacy_suggest
From: "Benoit Hudson" <bh@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Nov 2003 09:33:37 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=6897 >

The server wasn't correctly freeing the treaties it was creating; now it
should.  I've added a clear_treaty function to match init_treaty in
diptreaty.[ch] ; I call it everywhere that we free(ptreaty) -- which is
precisely two places.

Attachment: treaty_leak.patch
Description: Binary data


[Prev in Thread] Current Thread [Next in Thread]