dtcm: Coverity 89169
This commit is contained in:
@@ -1080,7 +1080,7 @@ static CSA_return_code
|
|||||||
get_date_time_list_value(char *valstr, cms_attribute_value **attrval)
|
get_date_time_list_value(char *valstr, cms_attribute_value **attrval)
|
||||||
{
|
{
|
||||||
char *ptr;
|
char *ptr;
|
||||||
CSA_date_time_entry *a, *head, *prev;
|
CSA_date_time_entry *a = NULL, *head, *prev;
|
||||||
CSA_return_code stat = CSA_SUCCESS;
|
CSA_return_code stat = CSA_SUCCESS;
|
||||||
cms_attribute_value *val;
|
cms_attribute_value *val;
|
||||||
|
|
||||||
@@ -1123,9 +1123,11 @@ get_date_time_list_value(char *valstr, cms_attribute_value **attrval)
|
|||||||
head = a;
|
head = a;
|
||||||
else
|
else
|
||||||
prev->next = a;
|
prev->next = a;
|
||||||
} else
|
} else {
|
||||||
|
free(a);
|
||||||
stat = CSA_E_INSUFFICIENT_MEMORY;
|
stat = CSA_E_INSUFFICIENT_MEMORY;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (stat == CSA_SUCCESS) {
|
if (stat == CSA_SUCCESS) {
|
||||||
val->item.date_time_list_value = head;
|
val->item.date_time_list_value = head;
|
||||||
|
|||||||
Reference in New Issue
Block a user