From 48a27fa64db4247b5c9eac67e5c32e588c35811e Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 03:51:15 +0100 Subject: [PATCH] dtcm: Coverity 89621 --- cde/programs/dtcm/server/log.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.25.1