parser: remove a memory leak on /* block comments */
[scilab.git] / scilab / modules / ast / src / cpp / parse / flex / scanscilab.ll
index fddd8e1..ea0f23e 100644 (file)
@@ -1124,6 +1124,7 @@ assign                    "="
     if (comment_level == 0) {
       ParserSingleInstance::popControlStatus();
       yy_pop_state();
+      delete yylval.comment;
       //return scan_throw(BLOCKCOMMENT);
     }
   }