Ticket #145 (new defect)

Opened 2 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 (0.5 KB) - added by pem@… 2 years ago.

Change History

Changed 2 years ago by pem@…

Add/Change #145 (Memory leak in yaml_document_t?)

Author


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


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from xi. Next status will be 'new'
The owner will change from xi to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.