Ticket #48302

getline() result not freed

Open Date: 2023-06-27 08:19 Last Update: 2024-02-09 15:31

Reporter:
Owner:
(None)
Type:
Status:
Open
Component:
MileStone:
Priority:
5 - Medium
Severity:
5 - Medium
Resolution:
None
File:
None

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 History (3/5 Histories)

2023-06-27 08:19 Updated by: cazfi
  • New Ticket "getline() result not freed" created
2023-08-30 11:39 Updated by: cazfi
  • Milestone Update from (None) to 3.0.9 (closed)
  • Component Update from (None) to Server
2023-10-08 05:31 Updated by: cazfi
Comment

Not sure if this has already been fixed as a side effect of recent sernet.c changes.

2023-11-10 14:24 Updated by: cazfi
2024-02-09 15:31 Updated by: cazfi

Attachment File List

No attachments

Edit

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login