Merge release-5-0 into master
[alexxy/gromacs.git] / src / gromacs / selection / scanner_internal.cpp
index ce4114854fcd646394a262c44b88c4ebcc57b13e..d7feb7d042ee8b56cd20db6af7d68119b9567926 100644 (file)
@@ -324,8 +324,7 @@ _gmx_sel_lexer_process_identifier(YYSTYPE *yylval, char *yytext, size_t yyleng,
                 GMX_THROW(gmx::InternalError("Unsupported variable type"));
                 return INVALID;
         }
-        delete yylval->sel;
-        return INVALID; /* Should not be reached. */
+        /* This position should not be reached. */
     }
     /* For method symbols, return the correct type */
     if (symtype == gmx::SelectionParserSymbol::MethodSymbol)