Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] (PR#7401) memory leak in city.c
Home

[Freeciv-Dev] (PR#7401) memory leak in city.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#7401) memory leak in city.c
From: "Per I. Mathisen" <per@xxxxxxxxxxx>
Date: Mon, 9 Feb 2004 13:11:20 -0800
Reply-to: rt@xxxxxxxxxxx

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

Index: common/city.c
===================================================================
RCS file: /home/freeciv/CVS/freeciv/common/city.c,v
retrieving revision 1.202
diff -u -r1.202 city.c
--- common/city.c       13 Jan 2004 03:18:18 -0000      1.202
+++ common/city.c       9 Feb 2004 21:09:50 -0000
@@ -2613,5 +2613,6 @@

**************************************************************************/
 void remove_city_virtual(struct city *pcity)
 {
+  unit_list_unlink_all(&pcity->units_supported);
   free(pcity);
 }





[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#7401) memory leak in city.c, Per I. Mathisen <=