Dev/detach pthreads not joining (#1019)

* detach the pthreads that are not joining else memory leak

* removed the clean up comment, also refactored the pthread join/detach for ctb 1g
This commit is contained in:
2024-11-07 11:24:46 +01:00
committed by GitHub
parent 06266f3905
commit 5088e5a205
19 changed files with 36 additions and 26 deletions

View File

@ -91,7 +91,7 @@ static inline void FILELOG_PrintLog(enum TLogLevel level, char *m) {
}
static inline char *FILELOG_BuildLog(const char *fmt, ...) {
char *p;
char *p = NULL;
va_list ap;
p = malloc(ERROR_MSG_LENGTH);
va_start(ap, fmt);