diff --git a/src/client/src/tscPrepare.c b/src/client/src/tscPrepare.c index 1ecfc3993d5bff459ead825215eeda860bea5620..eea6ffeb5959c98cbed6e4ad7ebd1344111daf01 100644 --- a/src/client/src/tscPrepare.c +++ b/src/client/src/tscPrepare.c @@ -1804,7 +1804,7 @@ int taos_stmt_close(TAOS_STMT* stmt) { } } - tscFreeRegisteredSqlObj(pStmt->pSql)); + tscFreeRegisteredSqlObj(pStmt->pSql); tfree(pStmt); STMT_RET(TSDB_CODE_SUCCESS); }