From d6ddc5a807195ee12c33ec05d4e56c3e252c87a7 Mon Sep 17 00:00:00 2001 From: dapan1121 <89396746@qq.com> Date: Fri, 28 May 2021 19:06:22 +0800 Subject: [PATCH] fix compile error --- tests/examples/c/apitest.c | 4 ++-- tests/script/api/batchprepare.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/examples/c/apitest.c b/tests/examples/c/apitest.c index 623a51ff37..add4b11d6b 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 92253be78c..55eb62d9bb 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; } -- GitLab