diff --git a/tests/examples/c/apitest.c b/tests/examples/c/apitest.c index a2754913b336ae53b995eb83336603c6764ef36c..be60a88ad70721bd6281d9ca8f1d73263a788532 100644 --- a/tests/examples/c/apitest.c +++ b/tests/examples/c/apitest.c @@ -150,6 +150,7 @@ static void verify_query(TAOS* taos) { res = taos_query(taos, "select * from meters"); taos_stop_query(res); + taos_free_result(res); }