
# HG changeset patch # User Dan Smith <danms@us.ibm.com> # Date 1196272229 28800 # Node ID e66205565a64aaaf90b62604948ab5d6c9b52d05 # Parent 06430b32cb03cf118ec1c8e866b2bc12ad7513a3 Fixes to RASD for libcmpiutil API change Signed-off-by: Dan Smith <danms@us.ibm.com> diff -r 06430b32cb03 -r e66205565a64 src/Virt_RASD.c --- a/src/Virt_RASD.c Wed Nov 28 09:50:29 2007 -0800 +++ b/src/Virt_RASD.c Wed Nov 28 09:50:29 2007 -0800 @@ -247,11 +247,10 @@ static CMPIStatus GetInstance(CMPIInstan { CMPIStatus s = {CMPI_RC_OK, NULL}; CMPIInstance *inst; - char *id = NULL; + const char *id = NULL; uint16_t type; - 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"); @@ -274,8 +273,6 @@ static CMPIStatus GetInstance(CMPIInstan CMPI_RC_ERR_FAILED, "Unknown instance"); out: - free(id); - return s; }