diff --git a/CheckMemoryLeak.cpp b/CheckMemoryLeak.cpp index cb29a62ff..d2b94c097 100644 --- a/CheckMemoryLeak.cpp +++ b/CheckMemoryLeak.cpp @@ -5,6 +5,8 @@ #include "CommonCheck.h" +#include // free + #include #include diff --git a/CommonCheck.cpp b/CommonCheck.cpp index 40d016e72..6b0c4f32a 100644 --- a/CommonCheck.cpp +++ b/CommonCheck.cpp @@ -1,6 +1,7 @@ //--------------------------------------------------------------------------- #include "CommonCheck.h" #include "tokenize.h" +#include // free #include #include #include @@ -363,7 +364,7 @@ void deleteTokens(TOKEN *tok) { while (tok) { - TOKEN *next = tok->next; + TOKEN *next = tok->next; free(tok->str); delete tok; tok = next;