-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 This patch looks good to me. acked. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9x19YACgkQrlYvE4MpobOxFQCgz/IRGXcOkHdCCnNOr6wfjiWs HJMAn1tjRIzPo2PF4YJORU3f98zQE3zn =0vb7 -----END PGP SIGNATURE-----
>From 8f33c1b0aea79e83583898bb2602ce727143dfd0 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" <berrange@xxxxxxxxxx> Date: Mon, 23 Jan 2012 15:41:15 +0000 Subject: [PATCH 22/73] libselinux: Remove unused flush_class_cache method * stringrep.c: Delete flush_class_cache Signed-off-by: Eric Paris <eparis@xxxxxxxxxx> --- libselinux/src/stringrep.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/libselinux/src/stringrep.c b/libselinux/src/stringrep.c index f0167e7..176ac34 100644 --- a/libselinux/src/stringrep.c +++ b/libselinux/src/stringrep.c @@ -305,28 +305,6 @@ err1: return NULL; } -void flush_class_cache(void) -{ - struct discover_class_node *cur = discover_class_cache, *prev = NULL; - size_t i; - - while (cur != NULL) { - free(cur->name); - - for (i=0 ; i<MAXVECTORS ; i++) - free(cur->perms[i]); - - free(cur->perms); - - prev = cur; - cur = cur->next; - - free(prev); - } - - discover_class_cache = NULL; -} - static security_class_t string_to_security_class_compat(const char *s) { unsigned int val; -- 1.7.9.3