Fixed memory leak
authorceriel <none@none>
Mon, 24 Jun 1991 16:33:43 +0000 (16:33 +0000)
committerceriel <none@none>
Mon, 24 Jun 1991 16:33:43 +0000 (16:33 +0000)
lang/cem/cemcom.ansi/declar.g
lang/cem/cemcom.ansi/declar.str
lang/cem/cemcom.ansi/stack.str

index 8224187..4a22814 100644 (file)
@@ -639,6 +639,7 @@ parameter_decl(struct proto **plp;)
        {       add_proto(new, &Ds, &Dc, level);
                new->next = *plp;
                *plp = new;
+               remove_declarator(&Dc);
        }
 ;
 
index ad812be..eb38fcf 100644 (file)
@@ -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  */
index 3c2447a..fd7e76d 100644 (file)
@@ -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        */