mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcm: Coverity 89169
This commit is contained in:
parent
d8358dcbcc
commit
19d0bafaad
1 changed files with 4 additions and 2 deletions
|
@ -1080,7 +1080,7 @@ static CSA_return_code
|
|||
get_date_time_list_value(char *valstr, cms_attribute_value **attrval)
|
||||
{
|
||||
char *ptr;
|
||||
CSA_date_time_entry *a, *head, *prev;
|
||||
CSA_date_time_entry *a = NULL, *head, *prev;
|
||||
CSA_return_code stat = CSA_SUCCESS;
|
||||
cms_attribute_value *val;
|
||||
|
||||
|
@ -1123,8 +1123,10 @@ get_date_time_list_value(char *valstr, cms_attribute_value **attrval)
|
|||
head = a;
|
||||
else
|
||||
prev->next = a;
|
||||
} else
|
||||
} else {
|
||||
free(a);
|
||||
stat = CSA_E_INSUFFICIENT_MEMORY;
|
||||
}
|
||||
}
|
||||
|
||||
if (stat == CSA_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue