From aea481fefdc60cfa4623c41b53790842357b0e5b Mon Sep 17 00:00:00 2001 From: Victor Kirhenshtein Date: Tue, 16 Aug 2016 12:30:41 +0300 Subject: [PATCH] fixed memory leak in thread pools --- src/libnetxms/tp.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libnetxms/tp.cpp b/src/libnetxms/tp.cpp index 0850fc313..abfc7e8e1 100644 --- a/src/libnetxms/tp.cpp +++ b/src/libnetxms/tp.cpp @@ -232,6 +232,7 @@ void LIBNETXMS_EXPORTABLE ThreadPoolDestroy(ThreadPool *p) ConditionSet(p->maintThreadStop); ThreadJoin(p->maintThread); + ConditionDestroy(p->maintThreadStop); WorkRequest rq; rq.func = NULL; -- 2.20.1