forked from lda/telodendria
Don't read the timestamp after it's freed.
This commit is contained in:
parent
c0309c1ea8
commit
bd88c01c26
1 changed files with 8 additions and 1 deletions
|
@ -344,6 +344,11 @@ main(int argc, char **argv)
|
|||
{
|
||||
LogConfigTimeStampFormatSet(lc, tConfig->logTimestamp);
|
||||
}
|
||||
else
|
||||
{
|
||||
Free(tConfig->logTimestamp);
|
||||
tConfig->logTimestamp = NULL;
|
||||
}
|
||||
|
||||
if (tConfig->flags & TELODENDRIA_LOG_COLOR)
|
||||
{
|
||||
|
@ -610,9 +615,11 @@ finish:
|
|||
fclose(stdout);
|
||||
}
|
||||
|
||||
TelodendriaConfigFree(tConfig);
|
||||
DbClose(matrixArgs.db);
|
||||
|
||||
LogConfigTimeStampFormatSet(lc, NULL);
|
||||
TelodendriaConfigFree(tConfig);
|
||||
|
||||
Log(lc, LOG_DEBUG, "");
|
||||
MemoryIterate(TelodendriaMemoryIterator, lc);
|
||||
Log(lc, LOG_DEBUG, "");
|
||||
|
|
Loading…
Reference in a new issue