From: Peter Howkins Date: Wed, 4 Jul 2018 23:06:59 +0000 (+0100) Subject: dtcm: Coverity 89641 X-Git-Tag: 2.3.0a~155 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fd56fc4b74470a830e76b77b536612a2b8771ef3;p=oweals%2Fcde.git dtcm: Coverity 89641 --- 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; }