diff --git a/src/client/src/TSDBJNIConnector.c b/src/client/src/TSDBJNIConnector.c index 64f56886a53dc73c402a8d8938383ec8702d8569..8c3e4a69828f7f1e1ecd9b66d99f38ea74f8fac5 100644 --- a/src/client/src/TSDBJNIConnector.c +++ b/src/client/src/TSDBJNIConnector.c @@ -643,6 +643,7 @@ JNIEXPORT jint JNICALL Java_com_taosdata_jdbc_TSDBJNIConnector_validateCreateTab int code = taos_validate_sql(tscon, dst); jniTrace("jobj:%p, conn:%p, code is %d", jobj, tscon, code); + free(dst); return code; }