git.netxms.org
/
public
/
netxms.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6492e55
)
fixed memory leak in thread pools
author
Victor Kirhenshtein
<victor@netxms.org>
Tue, 16 Aug 2016 09:30:41 +0000
(12:30 +0300)
committer
Victor Kirhenshtein
<victor@netxms.org>
Tue, 16 Aug 2016 09:30:41 +0000
(12:30 +0300)
src/libnetxms/tp.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/libnetxms/tp.cpp
b/src/libnetxms/tp.cpp
index
0850fc3
..
abfc7e8
100644
(file)
--- 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);
ConditionSet(p->maintThreadStop);
ThreadJoin(p->maintThread);
+ ConditionDestroy(p->maintThreadStop);
WorkRequest rq;
rq.func = NULL;
WorkRequest rq;
rq.func = NULL;