diff --git a/src/language.yacc b/src/language.yacc
index 83cbd9598e99ca06611b56c7ac30c491bc4ec338..0406e25501861153e0ce2c4707ed721384658b9f 100644
--- a/src/language.yacc
+++ b/src/language.yacc
@@ -156,7 +156,7 @@
 /* This is the grammar definition of Pike. */
 
 #include "global.h"
-RCSID("$Id: language.yacc,v 1.12 1996/11/28 03:05:52 hubbe Exp $");
+RCSID("$Id: language.yacc,v 1.13 1996/11/28 03:42:13 hubbe Exp $");
 #ifdef HAVE_MEMORY_H
 #include <memory.h>
 #endif
@@ -556,7 +556,7 @@ def: modifiers type_or_error optional_stars F_IDENTIFIER '(' arguments ')'
   | modifiers type_or_error name_list ';' {}
   | inheritance {}
   | constant {}
-  | class {}
+  | class { free_node($1); }
   | error 
   {
     reset_type_stack();