
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1196273390 28800 # Node ID dbc8be685fa5a1588fad5dfec31310ef520c5007 # Parent d2ca8217aebe475321b531657cbebcf90cd755c2 Fixes to ElementSettingData for libcmpiutil API change Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r d2ca8217aebe -r dbc8be685fa5 src/Virt_ElementSettingData.c --- a/src/Virt_ElementSettingData.c Wed Nov 28 10:09:50 2007 -0800 +++ b/src/Virt_ElementSettingData.c Wed Nov 28 10:09:50 2007 -0800 @@ -90,13 +90,12 @@ static CMPIStatus rasd_to_rasd(const CMP { CMPIStatus s = {CMPI_RC_OK, NULL}; CMPIInstance *inst; - char *id = NULL; + const char *id = NULL; uint16_t type; ASSOC_MATCH(info->provider_name, CLASSNAME(ref)); - id = cu_get_str_path(ref, "InstanceID"); - if (id == NULL) { + if (cu_get_str_path(ref, "InstanceID", &id) != CMPI_RC_OK) { cu_statusf(_BROKER, &s, CMPI_RC_ERR_FAILED, "Missing InstanceID"); @@ -122,8 +121,6 @@ static CMPIStatus rasd_to_rasd(const CMP inst_list_add(list, inst); out: - free(id); - return s; }