diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 80ffe78af..31e1c01a1 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -2700,8 +2700,6 @@ void CheckMemoryLeakStructMember::checkStructVariable(const Token * const vartok // skip ahead out of the block bool ret = false; while (tok3) { - // debug info - const std::string tok3str_(tok3->str()); if (tok3->str() == "return") ret = true; else if (tok3->str() == "{" || tok3->str() == "}") diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index b3b45b61c..3c6b02275 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -4507,8 +4507,6 @@ bool Tokenizer::simplifyTokenList() tok->insertToken(varname); tok->next()->varId(varid); } else if (Token::Match(tok, "; %var% = realloc ( 0 , %num% ) ;")) { - const std::string varname(tok->next()->str()); - tok = tok->tokAt(3); // Change function name "realloc" to "malloc" tok->str("malloc");