Skip to content

Commit

Permalink
Properly delete thread names on deregistration
Browse files Browse the repository at this point in the history
Thanks to stuartm for noticing this wee leak :)
  • Loading branch information
Beirdo committed Jun 25, 2012
1 parent f0b1a28 commit 3c57587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythbase/logging.cpp
Expand Up @@ -533,8 +533,8 @@ void LoggerThread::handleItem(LoggingItem *item)
(long long int)tid,
logThreadHash[item->m_threadId]);
}
item->m_threadName = logThreadHash[item->m_threadId];
logThreadHash.remove(item->m_threadId);
char *threadName = logThreadHash.take(item->m_threadId);
free(threadName);
}
}

Expand Down

0 comments on commit 3c57587

Please sign in to comment.