[Libvirt-cim] [PATCH 1 of 3] Add function to parse InstanceIDs
Dan Smith
danms at us.ibm.com
Thu Nov 15 19:55:45 UTC 2007
KR> +bool parse_instanceid(const CMPIObjectPath *ref,
KR> + char **pfx,
KR> + char **name)
KR> +{
KR> + int ret;
KR> + char *id = NULL;
KR> +
KR> + id = cu_get_str_path(ref, "InstanceID");
KR> + if (id == NULL)
KR> + return false;
KR> +
KR> + ret = parse_id(id, pfx, name);
KR> + if (!ret)
KR> + return false;
KR> +
KR> + return true;
KR> +}
You leak "id" here :)
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms at us.ibm.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-cim/attachments/20071115/6a596563/attachment.sig>
More information about the Libvirt-cim
mailing list