From df6ec95116659dd09b3b46cdba096fa009647b1c Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 04:01:43 +0100 Subject: [PATCH] dtcm: Coverity 88888 --- cde/programs/dtcm/server/cmsfunc.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.25.1