Ressurect change 27824, which plugs a resource leak in uncalled code.
[p5sagit/p5-mst-13.2.git] / toke.c
diff --git a/toke.c b/toke.c
index 3700e34..23f801e 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -8144,7 +8144,7 @@ Perl_keyword (pTHX_ const char *name, I32 len)
                   if (name[3] == 't' &&
                       name[4] == 'e')
                   {                               /* state      */
-                    return KEY_state;
+                    return (FEATURE_IS_ENABLED("state") ? KEY_state : 0);
                   }
 
                   goto unknown;