mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
security: Need to add virCommandFree()
This commit is contained in:
parent
50dc7015e5
commit
a2b36ec5db
@ -183,7 +183,7 @@ load_profile(virSecurityManagerPtr mgr,
|
|||||||
|
|
||||||
xml = virDomainDefFormat(def, VIR_DOMAIN_XML_SECURE);
|
xml = virDomainDefFormat(def, VIR_DOMAIN_XML_SECURE);
|
||||||
if (!xml)
|
if (!xml)
|
||||||
goto clean;
|
goto cleanup;
|
||||||
|
|
||||||
if (profile_status_file(profile) >= 0)
|
if (profile_status_file(profile) >= 0)
|
||||||
create = false;
|
create = false;
|
||||||
@ -202,8 +202,9 @@ load_profile(virSecurityManagerPtr mgr,
|
|||||||
virCommandSetInputBuffer(cmd, xml);
|
virCommandSetInputBuffer(cmd, xml);
|
||||||
rc = virCommandRun(cmd, NULL);
|
rc = virCommandRun(cmd, NULL);
|
||||||
|
|
||||||
clean:
|
cleanup:
|
||||||
VIR_FREE(xml);
|
VIR_FREE(xml);
|
||||||
|
virCommandFree(cmd);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user