dtcm: Coverity 89621
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 02:51:15 +0000 (03:51 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 02:51:15 +0000 (03:51 +0100)
cde/programs/dtcm/server/log.c

index dc1da3c634f75bdb15e6cafb888354259e587e12..614cb992d89b1d9d0572f9941240ad1f4b476f1e 100644 (file)
@@ -651,6 +651,7 @@ _DtCmsTruncateFile(char *calendar, int size)
                if(-1 == ftruncate(f, size)) {
                        perror(strerror(errno));
                }
+               close(f);
         }
 
        free(log);