sectionsd.cpp: Fix error 'heap-use-after-free' reported by AddressSanitizer

Origin commit data
------------------
Branch: ni/coolstream
Commit: e2f282ccc9
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2016-01-12 (Tue, 12 Jan 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2016-01-12 23:53:06 +01:00
parent af2ffd931b
commit 39664c39f4
2 changed files with 6 additions and 4 deletions

View File

@@ -1432,8 +1432,8 @@ void CTimeThread::run()
time_t dvb_time = 0;
bool retry = false; /* if time seems fishy, set to true and try again */
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
threadName = "sd:" + name;
set_threadname(threadName.c_str());
addFilters();
DMX::start();
@@ -1568,8 +1568,8 @@ int CSectionThread::Sleep()
void CSectionThread::run()
{
xprintf("%s::run:: starting, pid %d (%lu)\n", name.c_str(), getpid(), pthread_self());
const char *tn = ("sd:" + name).c_str();
set_threadname(tn);
threadName = "sd:" + name;
set_threadname(threadName.c_str());
if (sections_debug)
dump_sched_info(name);