Modify

Ticket #145 (new defect)

Opened 4 years ago

Last modified 44 years ago

Memory leak in yaml_document_t?

Reported by: pem@… Owned by: xi
Priority: normal Component: libyaml
Severity: normal Keywords:
Cc:

Description

valgrind (v3.3.0) reports a memory after having called yaml_document_delete():

1,536 bytes in 1 blocks are definitely lost in loss record 1 of 1

at 0x4C2560E: malloc (in /usr/lib64/valgrind/amd64-linux/vgpreload_memcheck.so) by 0x4E2DF68: yaml_document_initialize (api.c:1058) by 0x4009F7: main (yaml-leak.c:11)

when running the attached, very minimal, program. All it does is yaml_parse_load() of any yaml input. (A single word will do.) This is with libyaml 0.1.3.

Attachments

yaml-leak.c Download (528 bytes) - added by pem@… 4 years ago.

Change History

Changed 4 years ago by pem@…

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from xi. Next status will be 'new'
The owner will be changed from xi to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.