fixed memory leak in thread pools
[public/netxms.git] / src / libnetxms / tp.cpp
index 0850fc3..abfc7e8 100644 (file)
@@ -232,6 +232,7 @@ void LIBNETXMS_EXPORTABLE ThreadPoolDestroy(ThreadPool *p)
 
    ConditionSet(p->maintThreadStop);
    ThreadJoin(p->maintThread);
+   ConditionDestroy(p->maintThreadStop);
 
    WorkRequest rq;
    rq.func = NULL;