#48302: getline() result not freed Open Date: 2023-06-27 02:19 Last Update: 2023-10-07 23:31 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/48302 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48302 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2023-10-07 23:31 Updated by: cazfi Comment: Not sure if this has already been fixed as a side effect of recent sernet.c changes. --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.0.9 Component: Server Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: S3_2 autogame, readline disabled (just because it spams with so many memory leak warnings): ==1536407== 120 bytes in 1 blocks are still reachable in loss record 11 of 13 ==1536407== at 0x48407B4: malloc (vg_replace_malloc.c:381) ==1536407== by 0x5018B3E: getdelim (iogetdelim.c:62) ==1536407== by 0x22362E: getline (stdio.h:120) ==1536407== by 0x22362E: server_sniff_all_input (sernet.c:855) ==1536407== by 0x15E9D4: srv_main (srv_main.c:3532) ==1536407== by 0x153F7D: main (civserver.c:388) -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/48302 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=48302