mirror of https://gitee.com/openkylin/libvirt.git
virStoragePoolDefParseSource: Don't leak @port
In a1c453dc08
, during VIR_AUTOFREE() rewrite this wasn't done
properly. @port might be leaked because it's allocated in a for()
loop.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
66bb371e8e
commit
181b68ad9d
|
@ -588,6 +588,7 @@ virStoragePoolDefParseSource(xmlXPathContextPtr ctxt,
|
|||
goto cleanup;
|
||||
}
|
||||
}
|
||||
VIR_FREE(port);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue