On 20/05/2016 10:20, Xiao Guangrong wrote:
> + if (size <= nvdimm->label_size) {
> + HostMemoryBackend *hostmem = dimm->hostmem;
> + char *path = object_get_canonical_path_component(OBJECT(hostmem));
> +
> + error_setg(errp, "the size of memdev %s (0x%" PRIx64 ") is too"
> + "small to contain nvdimm label (0x%" PRIx64 ")",
> + path, memory_region_size(mr), nvdimm->label_size);Coverity reports here that path is leaked. Thanks, Paolo
