mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtcm: Coverity 89641
This commit is contained in:
parent
547cc3e22b
commit
fd56fc4b74
1 changed files with 2 additions and 1 deletions
|
@ -2973,7 +2973,7 @@ x_print_list_range(Calendar *c, CSA_sint32 appt_type, int item_data,
|
||||||
time_t start, end;
|
time_t start, end;
|
||||||
CSA_return_code stat;
|
CSA_return_code stat;
|
||||||
CSA_entry_handle *list;
|
CSA_entry_handle *list;
|
||||||
CSA_attribute *range_attrs;
|
CSA_attribute *range_attrs = NULL;
|
||||||
CSA_enum *ops = NULL;
|
CSA_enum *ops = NULL;
|
||||||
int i;
|
int i;
|
||||||
CSA_uint32 a_total;
|
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,
|
stat = csa_list_entries(c->cal_handle, i, range_attrs,
|
||||||
ops, &a_total, &list, NULL);
|
ops, &a_total, &list, NULL);
|
||||||
free(ops);
|
free(ops);
|
||||||
|
free(range_attrs);
|
||||||
if (stat != CSA_SUCCESS) {
|
if (stat != CSA_SUCCESS) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue