Summary: "Island-based" generator memory leak
                 Project: Freeciv
            Submitted by: pepeto
            Submitted on: mer. 29 janv. 2014 01:39:15 CET
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
                  Status: Ready For Test
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
                 Release: S2_3,S2_4,S2_5,trunk
         Discussion Lock: Any
        Operating System: None
         Planned Release: 



Terrain selection lists are never freed. Fix attached.

Valgrind output:

==6080== 32 bytes in 1 blocks are definitely lost in loss record 221 of 1,459
==6080==    at 0x4C2B6CD: malloc (in
==6080==    by 0x5EE5E1: fc_real_malloc (mem.c:84)
==6080==    by 0x5EE6F4: fc_real_calloc (mem.c:129)
==6080==    by 0x5EC012: genlist_new_full (genlist.c:82)
==6080==    by 0x464AE1: map_fractal_generate (speclist.h:168)
==6080==    by 0x435BBA: srv_main (srv_main.c:2542)
==6080==    by 0x42E851: main (civserver.c:453)


File Attachments:

Date: mer. 29 janv. 2014 01:39:15 CET  Name: mapgen_mem_leak.diff  Size: 3 ko 
 By: pepeto



Reply to this item at:


  Message posté via/par Gna!

Freeciv-dev mailing list

Reply via email to