-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed memory leaks in parser #23
Conversation
@@ -11,6 +11,7 @@ | |||
extern FILE *yyin; | |||
int yylex(void); | |||
void yyerror(const char *); | |||
int yylex_destroy(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int yylex_destroy(void); | |
int yylex_destroy(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine in ide, github indentation just looks weird
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are using a tab. The rest of this block is using 4 spaces.
@@ -7,6 +7,7 @@ | |||
extern FILE *yyin; | |||
int yylex(void); | |||
void yyerror(const char *); | |||
int yylex_destroy(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int yylex_destroy(void); | |
int yylex_destroy(void); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
On a very side note, should the changes above also benefit lab 2? |
As discussed in #22, created a separate PR to fix the memory issues outlined in #21.