Modify

Ticket #87 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

front page example has broken delete for yaml_event_delete

Reported by: anonymous R Owned by: xi
Priority: normal Component: libyaml
Severity: normal Keywords:
Cc:

Description

In the PARSER API Synopsis example program there is a memory bug.

the while loop checks the type of the event.type but the event has already been deleted. the delete invalidates the event type under debian on my x86 system. to fix the bug, i had to introduce another integer variable to hold the type so that the loop can check that to know when to end.

Attachments

Change History

comment:1 Changed 6 years ago by xi

  • Status changed from new to assigned

comment:2 Changed 5 years ago by xi

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.