pthread_attr_destroy added to prevent memory leak on config reload

This commit is contained in:
z3APA3A committed 2017-09-13 22:05:38 +03:00
1 parent ff9c94f616
commit 2554f06759
2 files changed
+4

No files matched your search

+3
View File
@@ -830,6 +830,9 @@ int MODULEMAINFUNC (int argc, char** argv){
pthread_mutex_unlock(&config_mutex);
#endif
#ifndef _WIN32
pthread_attr_destroy(&pa);
#endif
if(defparam.hostname)myfree(defparam.hostname);
if(cbc_string)myfree(cbc_string);
if(cbl_string)myfree(cbl_string);