diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index 9fedb2dfe74cead4e9cfba07aa6ed98410d62609..8c8afc8d8882332069e4e007c533abad4135f6cc 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -200,7 +200,7 @@ void taos_init_imp(void) { // In the APIs of other program language, taos_cleanup is not available yet. // So, to make sure taos_cleanup will be invoked to clean up the allocated resource to suppress the valgrind warning. // But in the dll, the child thread will be killed before atexit takes effect.So taos_cleanup is not necessary. -#if defined(_UWIN) +#if !defined(TD_WINDOWS) atexit(taos_cleanup); #endif