From fd56fc4b74470a830e76b77b536612a2b8771ef3 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 5 Jul 2018 00:06:59 +0100 Subject: [PATCH] dtcm: Coverity 89641 --- cde/programs/dtcm/dtcm/x_graphics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/x_graphics.c b/cde/programs/dtcm/dtcm/x_graphics.c index 1125a982..61434aab 100644 --- a/cde/programs/dtcm/dtcm/x_graphics.c +++ b/cde/programs/dtcm/dtcm/x_graphics.c @@ -2973,7 +2973,7 @@ x_print_list_range(Calendar *c, CSA_sint32 appt_type, int item_data, time_t start, end; CSA_return_code stat; CSA_entry_handle *list; - CSA_attribute *range_attrs; + CSA_attribute *range_attrs = NULL; CSA_enum *ops = NULL; int i; CSA_uint32 a_total; @@ -3010,6 +3010,7 @@ x_print_list_range(Calendar *c, CSA_sint32 appt_type, int item_data, stat = csa_list_entries(c->cal_handle, i, range_attrs, ops, &a_total, &list, NULL); free(ops); + free(range_attrs); if (stat != CSA_SUCCESS) { return; } -- 2.25.1