Skip to content

Commit

Permalink
Do not delete parser on error for yield, let caller see errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar committed Apr 12, 2016
1 parent 8b2b9d1 commit 5000af6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dttools/src/jx_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@ struct jx * jx_parser_yield( struct jx_parser *p )
{
struct jx * j = jx_parse(p);
if(jx_parser_errors(p)) {
jx_parser_delete(p);
jx_delete(j);
return 0;
}
Expand Down

0 comments on commit 5000af6

Please sign in to comment.