Index: trunk/src_plugins/io_bxl/read.c =================================================================== --- trunk/src_plugins/io_bxl/read.c (revision 30837) +++ trunk/src_plugins/io_bxl/read.c (revision 30838) @@ -671,8 +671,10 @@ if (tok == UREGLEX_MORE) continue; - if ((tok == UREGLEX_NO_MATCH) || (tok == UREGLEX_TOO_LONG)) + if ((tok == UREGLEX_NO_MATCH) || (tok == UREGLEX_TOO_LONG)) { + fclose(f); return -1; /* error - stop fast, don't read through the whole file */ + } /* simplified "grammar": find opening tokens, save the next token as ID and don't do anything until finding the closing token */