From: Peter Howkins Date: Wed, 4 Jul 2018 03:01:43 +0000 (+0100) Subject: dtcm: Coverity 88888 X-Git-Tag: 2.3.0a~190 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=df6ec95116659dd09b3b46cdba096fa009647b1c;p=oweals%2Fcde.git dtcm: Coverity 88888 --- diff --git a/cde/programs/dtcm/server/cmsfunc.c b/cde/programs/dtcm/server/cmsfunc.c index fcccefd8..79f02e55 100644 --- a/cde/programs/dtcm/server/cmsfunc.c +++ b/cde/programs/dtcm/server/cmsfunc.c @@ -1320,6 +1320,8 @@ _ListCalendarNames(uint *num_names, char ***names) } } + closedir(dirp); + if (num > 0) { *num_names = num; *names = names_r;