mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03: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);
|
||||
if (!xml)
|
||||
goto clean;
|
||||
goto cleanup;
|
||||
|
||||
if (profile_status_file(profile) >= 0)
|
||||
create = false;
|
||||
@ -202,8 +202,9 @@ load_profile(virSecurityManagerPtr mgr,
|
||||
virCommandSetInputBuffer(cmd, xml);
|
||||
rc = virCommandRun(cmd, NULL);
|
||||
|
||||
clean:
|
||||
cleanup:
|
||||
VIR_FREE(xml);
|
||||
virCommandFree(cmd);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user