fix indirect leak
This commit is contained in:
parent
3b283b6350
commit
46a79c0be3
|
@ -620,6 +620,10 @@ void* createConnPool(int size) {
|
||||||
}
|
}
|
||||||
void* destroyConnPool(SCliThrd* pThrd) {
|
void* destroyConnPool(SCliThrd* pThrd) {
|
||||||
void* pool = pThrd->pool;
|
void* pool = pThrd->pool;
|
||||||
|
if (pool == NULL) {
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
SConnList* connList = taosHashIterate((SHashObj*)pool, NULL);
|
SConnList* connList = taosHashIterate((SHashObj*)pool, NULL);
|
||||||
while (connList != NULL) {
|
while (connList != NULL) {
|
||||||
while (!QUEUE_IS_EMPTY(&connList->conns)) {
|
while (!QUEUE_IS_EMPTY(&connList->conns)) {
|
||||||
|
|
Loading…
Reference in New Issue