1
0
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:
John Ferlan 2013-01-23 17:04:45 -05:00 committed by Michal Privoznik
parent 50dc7015e5
commit a2b36ec5db

View File

@ -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;
}