URL:
<http://gna.org/bugs/?15519>
Summary: ai_settler_init() memory leak
Project: Freeciv
Submitted by: cazfi
Submitted on: Monday 03/01/2010 at 16:34
Category: None
Severity: 3 - Normal
Priority: 1 - Later
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: S2_2 r16933
Discussion Lock: Any
Operating System: None
Planned Release:
_______________________________________________________
Details:
I run longish autogame in Valgrind.
I'm not going to submit separate ticket for all of the memory loos records.
Several cases of the unfreed memory is allocated in end_phase() ->
xxx_init(). It's likely that all these seemingly separate leaks are caused by
one bug causing proper xxx_deinit() for these xxx_init() functions not to
run.
Example report, one with most memory consumed:
==27020== 32,448 bytes in 1 blocks are still reachable in loss record 1,185
of 1,186
==27020== at 0x4C222A8: realloc (vg_replace_malloc.c:476)
==27020== by 0x506554: fc_real_realloc (mem.c:104)
==27020== by 0x497B03: ai_settler_init (aisettler.c:455)
==27020== by 0x40962E: end_phase (srv_main.c:859)
==27020== by 0x40B09D: srv_running (srv_main.c:2100)
==27020== by 0x40C29E: srv_main (srv_main.c:2458)
==27020== by 0x404334: main (civserver.c:359)
==27020==
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?15519>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev