Skip to content

Commit

Permalink
Fix the memroy leak in the parser when parse admin job operation. (ve…
Browse files Browse the repository at this point in the history
  • Loading branch information
Shylock-Hg authored Jul 21, 2020
1 parent 44ab2d0 commit 61b6976
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/parser/parser.yy
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,7 @@ admin_sentence
: KW_SUBMIT KW_JOB admin_operation {
auto sentence = new AdminSentence("add_job");
sentence->addPara(*$3);
delete $3;
$$ = sentence;
}
| KW_SHOW KW_JOBS {
Expand Down

0 comments on commit 61b6976

Please sign in to comment.