From 689916c98d8c94f979a6521791a373de2e988aa5 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 18:15:49 +0100 Subject: [PATCH] dtcm: Coverity 88584 --- cde/programs/dtcm/server/cmsfunc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/server/cmsfunc.c b/cde/programs/dtcm/server/cmsfunc.c index 79f02e55..86dc10f0 100644 --- a/cde/programs/dtcm/server/cmsfunc.c +++ b/cde/programs/dtcm/server/cmsfunc.c @@ -473,7 +473,7 @@ cms_set_calendar_attr_5_svc(cms_set_cal_attr_args *args, struct svc_req *svcrq) } } else { int i; - Access_Entry_4 *v4list; + Access_Entry_4 *v4list = NULL; /* for old format file, the only settable calendar attribute * is access list @@ -490,7 +490,10 @@ cms_set_calendar_attr_5_svc(cms_set_cal_attr_args *args, struct svc_req *svcrq) if ((res = _DtCmsCmsAccessToV4Access( args->attrs[i].value->item.access_list_value, &v4list)) == CSA_SUCCESS) + { res = _DtCmsSetV4AccessListAndLog(cal, v4list); + } + free(v4list); } if (res != CSA_SUCCESS) -- 2.25.1