diff --git a/source/libs/nodes/src/nodesUtilFuncs.c b/source/libs/nodes/src/nodesUtilFuncs.c index 7bddc068e3..32981d2ed9 100644 --- a/source/libs/nodes/src/nodesUtilFuncs.c +++ b/source/libs/nodes/src/nodesUtilFuncs.c @@ -1089,6 +1089,8 @@ void nodesDestroyNode(SNode* pNode) { if (pStmt->destroyParseFileCxt) { pStmt->destroyParseFileCxt(&pStmt->pParFileCxt); } + + (void)taosCloseFile(&pStmt->fp); break; } case QUERY_NODE_CREATE_DATABASE_STMT: