Skip to content

Commit

Permalink
release memory associated with yaml_event using yaml_event_delete at …
Browse files Browse the repository at this point in the history
…bottom of parse event loop
  • Loading branch information
mjtko committed Jun 5, 2011
1 parent e13ab95 commit a589cb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/psych/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ static VALUE parse(VALUE self, VALUE yaml)
done = 1;
break;
}
yaml_event_delete(&event);
}

return self;
Expand Down

0 comments on commit a589cb7

Please sign in to comment.