1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

DtTerm: Coverity (memory corruption)

This commit is contained in:
Jon Trulson 2014-12-26 14:08:24 -07:00
parent fa0074904b
commit b0548ce111

View file

@ -510,8 +510,9 @@ ForceCloseLog(DtTermPrimitiveWidget tw)
if (tw->term.log_on)
{
(void) fclose(tpd->logStream);
(void) DeleteLogFileEntry(tpd->logStream);
(void) fclose(tpd->logStream);
tpd->logStream = NULL;
tw->term.log_on = False;
}
}