Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2004:
[Freeciv-Dev] (PR#9946) ai->government_want memory leak
Home

[Freeciv-Dev] (PR#9946) ai->government_want memory leak

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#9946) ai->government_want memory leak
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Sep 2004 22:02:40 -0700
Reply-to: rt@xxxxxxxxxxx

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

==7647== 6446 bytes in 352 blocks are definitely lost in loss record 15 
of 17
==7647==    at 0x1B904EDD: malloc (vg_replace_malloc.c:131)
==7647==    by 0x804B1FB: fc_real_malloc (mem.c:79)
==7647==    by 0x804B2B3: fc_real_calloc (mem.c:124)
==7647==    by 0x811B723: ai_data_init (aidata.c:372)
==7647==    by 0x8051057: srv_loop (srv_main.c:1779)
==7647==    by 0x8050A40: srv_main (srv_main.c:1562)
==7647==    by 0x804A719: main (civserver.c:170)

This value could be made into a static array (size G_MAGIC).

jason




[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#9946) ai->government_want memory leak, Jason Short <=