=== modified file 'src/dbStatic/dbLexRoutines.c' --- src/dbStatic/dbLexRoutines.c 2013-11-20 22:21:10 +0000 +++ src/dbStatic/dbLexRoutines.c 2013-12-04 20:20:01 +0000 @@ -112,8 +112,6 @@ { yyerror(str); yyAbort = TRUE; - while (ellCount(&tempList)) - popFirstTemp(); } static void allocTemp(void *pvoid) @@ -256,6 +254,11 @@ my_buffer_ptr = my_buffer; ellAdd(&inputFileList,&pinputFile->node); status = pvt_yy_parse(); + + if (yyAbort) + while (ellCount(&tempList)) + popFirstTemp(); + dbFreePath(pdbbase); if(!status) { /*add RTYP and VERS as an attribute */ DBENTRY dbEntry;