From: Guannan Ren Date: Wed, 17 Oct 2012 03:28:28 +0000 (+0800) Subject: selinux: remove unused variables in socket labelling X-Git-Tag: v0.10.2.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c2a38d1edbee7cdceed665e8d42bfa23728d960;p=thirdparty%2Flibvirt.git selinux: remove unused variables in socket labelling (cherry picked from commit d37a3a1d6c6508f235965185453602ba310cc66e) --- diff --git a/src/security/security_selinux.c b/src/security/security_selinux.c index 29fb2de136..58ad8fb96b 100644 --- a/src/security/security_selinux.c +++ b/src/security/security_selinux.c @@ -1626,8 +1626,6 @@ virSecuritySELinuxSetSecurityDaemonSocketLabel(virSecurityManagerPtr mgr, { /* TODO: verify DOI */ virSecurityLabelDefPtr secdef; - context_t execcon = NULL; - context_t proccon = NULL; security_context_t scon = NULL; char *str = NULL; int rc = -1; @@ -1670,8 +1668,6 @@ done: if (security_getenforce() != 1) rc = 0; - if (execcon) context_free(execcon); - if (proccon) context_free(proccon); freecon(scon); VIR_FREE(str); return rc;