Skip to content

Commit

Permalink
yang parser BUGFIX double free
Browse files Browse the repository at this point in the history
Fixes #769
  • Loading branch information
michalvasko committed Apr 26, 2019
1 parent 51d16f6 commit 6cc51b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/parser_yang_bis.c
Original file line number Diff line number Diff line change
Expand Up @@ -6980,6 +6980,7 @@ YYLTYPE yylloc = yyloc_default;
YYABORT;
}
data_node = actual;
s = NULL;
actual_type = NOTIFICATION_KEYWORD;
}

Expand Down
1 change: 1 addition & 0 deletions src/yang.y.in
Original file line number Diff line number Diff line change
Expand Up @@ -3262,6 +3262,7 @@ notification_arg_str: identifier_arg_str { $$.token = actual_type;
YYABORT;
}
data_node = actual;
s = NULL;
actual_type = NOTIFICATION_KEYWORD;
}

Expand Down

0 comments on commit 6cc51b1

Please sign in to comment.