diff --git a/tests/examples/c/apitest.c b/tests/examples/c/apitest.c index 623a51ff37f402afe4fb9b6b7c08af93f899f0ed..add4b11d6bb9fd91e2e4b4e63e2a2f6231ba35d4 100644 --- a/tests/examples/c/apitest.c +++ b/tests/examples/c/apitest.c @@ -448,7 +448,7 @@ void verify_prepare2(TAOS* taos) { double f8[10]; char bin[10][40]; char blob[10][80]; - } v = {0}; + } v; int32_t *t8_len = malloc(sizeof(int32_t) * 10); int32_t *t16_len = malloc(sizeof(int32_t) * 10); @@ -688,7 +688,7 @@ void verify_prepare3(TAOS* taos) { double f8[10]; char bin[10][40]; char blob[10][80]; - } v = {0}; + } v; int32_t *t8_len = malloc(sizeof(int32_t) * 10); int32_t *t16_len = malloc(sizeof(int32_t) * 10); diff --git a/tests/script/api/batchprepare.c b/tests/script/api/batchprepare.c index 92253be78c89e7f6420cead370e2e365534f152b..55eb62d9bb4272fe7ab85a96561ebd9c87343ed0 100644 --- a/tests/script/api/batchprepare.c +++ b/tests/script/api/batchprepare.c @@ -1046,6 +1046,7 @@ int stmt_funcb_autoctb1(TAOS_STMT *stmt) { free(params); free(is_null); free(no_null); + free(tags); return 0; } @@ -1258,6 +1259,7 @@ int stmt_funcb_autoctb2(TAOS_STMT *stmt) { free(params); free(is_null); free(no_null); + free(tags); return 0; } @@ -1446,6 +1448,7 @@ int stmt_funcb_autoctb3(TAOS_STMT *stmt) { free(params); free(is_null); free(no_null); + free(tags); return 0; } @@ -1635,6 +1638,7 @@ int stmt_funcb_autoctb_e1(TAOS_STMT *stmt) { free(params); free(is_null); free(no_null); + free(tags); return 0; } @@ -1849,6 +1853,7 @@ int stmt_funcb_autoctb_e2(TAOS_STMT *stmt) { free(params); free(is_null); free(no_null); + free(tags); return 0; }