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:
parent
fa0074904b
commit
b0548ce111
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue