From: John Ferlan Date: Wed, 23 Jan 2013 22:04:45 +0000 (-0500) Subject: security: Need to add virCommandFree() X-Git-Tag: v1.0.2-rc1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b36ec5db27483dc77ba29736c37c054fa0332a;p=thirdparty%2Flibvirt.git security: Need to add virCommandFree() --- diff --git a/src/security/security_apparmor.c b/src/security/security_apparmor.c index 7331c91f8a..2b9c337fba 100644 --- a/src/security/security_apparmor.c +++ b/src/security/security_apparmor.c @@ -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; }