--- branches/development/src/utils/StringUtils.cpp 2013/05/10 16:09:34 1873 +++ branches/development/src/utils/StringUtils.cpp 2013/05/15 15:09:35 1874 @@ -183,11 +183,15 @@ namespace OpenMD { foo = strtok(working_line, " ,;\t"); if (foo != NULL) { - - if (!strcasecmp(foo, "end")) return 1; + + if (!strcasecmp(foo, "end")) { + free(working_line); + return 1; + } } + free(working_line); return 0; }