提交 a2b36ec5 编写于 作者: J John Ferlan 提交者: Michal Privoznik

security: Need to add virCommandFree()

上级 50dc7015
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册