Complete.Org: Mailing Lists: Archives: freeciv-dev: December 2004:
[Freeciv-Dev] (PR#11465) memory leak: cm state is never freed
Home

[Freeciv-Dev] (PR#11465) memory leak: cm state is never freed

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#11465) memory leak: cm state is never freed
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Dec 2004 19:07:57 -0800
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=11465 >

==17260== 512 bytes in 2 blocks are definitely lost in loss record 104 
of 156
==17260==    at 0x1B906EDD: malloc (vg_replace_malloc.c:131)
==17260==    by 0x80A0C6E: fc_real_malloc (mem.c:75)
==17260==    by 0x810C627: cm_init_state (cm.c:1674)
==17260==    by 0x810C92E: cm_query_result (cm.c:1799)

The state pointer is allocated in cm_init_state but isn't freed in 
cm_free_state.

I get this error in the client in the dev branch but I'm sure it applies 
to the server and the 2.0 branch as well.

-jason





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