Fixed memory leak
This commit is contained in:
parent
1be579a6e7
commit
42584ddcdb
|
@ -639,6 +639,7 @@ parameter_decl(struct proto **plp;)
|
|||
{ add_proto(new, &Ds, &Dc, level);
|
||||
new->next = *plp;
|
||||
*plp = new;
|
||||
remove_declarator(&Dc);
|
||||
}
|
||||
;
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
struct declarator {
|
||||
struct declarator *next;
|
||||
/* struct declarator *next; */
|
||||
struct idf *dc_idf;
|
||||
struct decl_unary *dc_decl_unary;
|
||||
struct formal *dc_formal; /* params for function */
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
*/
|
||||
|
||||
struct stack_level {
|
||||
struct stack_level *next;
|
||||
/* struct stack_level *next; */
|
||||
struct stack_level *sl_next; /* upward link */
|
||||
struct stack_level *sl_previous; /* downward link */
|
||||
struct stack_entry *sl_entry; /* sideward link */
|
||||
|
|
Loading…
Reference in a new issue