while (lm != NULL) { PRLogModuleInfo *next = lm->next; PR_Free(( char *)lm->name); PR_Free(lm); lm = next; } logModules = NULL;
void _PR_LogCleanup(void){    PR_LogFlush();#ifdef _PR_USE_STDIO_FOR_LOGGING    if (logFile && logFile != stdout && logFile != stderr) {        fclose(logFile);    }#else    if (logFile && logFile != _pr_stdout && logFile != _pr_stderr) {        PR_Close(logFile);    }#endif}