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