From: Peter Howkins Date: Wed, 4 Jul 2018 02:51:15 +0000 (+0100) Subject: dtcm: Coverity 89621 X-Git-Tag: 2.3.0a~194 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=48a27fa64db4247b5c9eac67e5c32e588c35811e;p=oweals%2Fcde.git dtcm: Coverity 89621 --- diff --git a/cde/programs/dtcm/server/log.c b/cde/programs/dtcm/server/log.c index dc1da3c6..614cb992 100644 --- a/cde/programs/dtcm/server/log.c +++ b/cde/programs/dtcm/server/log.c @@ -651,6 +651,7 @@ _DtCmsTruncateFile(char *calendar, int size) if(-1 == ftruncate(f, size)) { perror(strerror(errno)); } + close(f); } free(log);